Text =  text .convert  (  Number ,  Format  )  
                                
Description :

This instruction converts a number into a string.

Parameters :

  • Number to convert.
  • The float is displayed according to one of the following format codes:

    "" (Full display)
    "####.##" (where # represents a digit to display.
    "0000.00" (Same as # but 0 will be displayed when there is no digit.
    "????.??" (Same as # but a space will be displayed when there is no digit)


    NOTE :

    For alignment purposes, spaces can placed within these codes. For example:

    "### ###.##"
    "000 000.00"
    "??? ???.??"

Return Value :

  • Number in the string format

Notes :


$second = str (%second,"00") is the concatenation of the following instructions:

     if (%second>9)
     $second=text.convert (%second)
     else ()
     $second="0"+text.convert (%second)
     endif ()

Examples :