October 2018
Intermediate to advanced
370 pages
9h 15m
English
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")}
Read now
Unlock full access