====== Float ====== Use ''Float'' to convert floating point values to a ''String''. Dim F1 As Single F1 = 3.14 Debug Float F1,cr ' Print "3.14000". Dim ST As String * 15 ST = Float F1 ' First store in a String. ST = Left(ST,3) ' Convert to 3 decimal places Debug ST ' Print "3.14". {{:cubloc:float:cublocfloat1.png?600|}} You can also store a value in ''String'' before printing with [[:cubloc:Debug:]] statements or displaying to the LCD as shown below. {{:cubloc:float:cublocfloat2.png?600|}} See also [[:cubloc:FP:]] [[cubloc:index#system_library:|Go CUBLOC home]]