Check out example codes for "como poner numeros decimales en kotlin". It will help you in understanding the concepts better.

Code Example 1

class casa(var plantaB: Double, var plantaA: Double , var superficie: Double){
    fun fos():Double{
        return (plantaB/superficie)
    }

Learn ReactJs, React Native from akashmittal.com