IBM Z and LinuxONE Languages

Languages

Languages

Broad range of supported development languages and tools allows to transform software delivery practices.


#Servers
 View Only

Resulting precision of the PL/I FLOAT builtin? Documentation has 2 conflicting answers.

  • 1.  Resulting precision of the PL/I FLOAT builtin? Documentation has 2 conflicting answers.

    Posted 03/05/26 12:37 PM

    Looking at the PL/I language reference manual for the FLOAT builtin, it says:

    If p is omitted, the precision of the result is determined from the rules for base conversion.

    If p is omitted, the default value, 15 for a binary result or 5 for a decimal result, is used.

    Older versions of the doc only have the first sentence.  

    So - wondering which sentence is correct?   And, if the second sentence is correct a FLOAT BIN precision of 15 is rather small for, say, a FIXED BIN(63) value.



    ------------------------------
    Dave Rivers
    ------------------------------