====== FP (value, wholeNumberDigits, fractionalNumberDigits) ====== ''FP'' converts floating point variables into a formatted string with user defined whole and fractional number of digits. Dim A as Single A = 3.14 Debug Float A ' 3.1400000 Prints all digits. Debug FP(A,3,2) ' 3.14 Print user defined digits. With the ''FP'' function, the user can control the number of digits to be used for ''string'' data when using [[:cubloc:Debug:]] or displaying to an LCD. {{:cubloc:fp:cublocfp.png?600|}} Cubloc floating-point values are stored in accordance to the IEEE 754 format. The output of ''FP'' and [[:cubloc:Float:]] may differ but the value stored in the variable will be the same. See also [[:cubloc:Float:]], [[:cubloc:DP:]], and [[:cubloc:HP:]] [[cubloc:index#system_library:|Go CUBLOC home]]