|
![]() |
||||||||||||||
Primitive Data Types TutorialConversion to Float TypeFunction asFloat(x) converts Integer value x to appropriate Float value. Function asFloat(x) converts String value x, representing a valid float, to appropriate Float value. Function asFloat(x) converts Bool value true to value 1.0 and value false to 0.0. Source code:{# asFloat(7), asFloat('6.2'), asFloat(true), asFloat(false) #} Result:{# 7.000000, 6.200000, 1.000000, 0.000000 #}
|
|
||||||||||||||
© 2006 Saša Malkov | |||||||||||||||