Converting from Byte to Float

Create a Byte variable and assign a value to it, then use the toFloat() function to convert this from Byte to Float as follows:

fun main (args: Array<String>) { 
var byteValue : Byte = 10
var floatValue : Float
floatValue = byteValue.toFloat()
println("From Byte $byteValue to Float $floatValue")
}

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.72.15