If I enter “a” as 1.1234567 i.e. 7 digits after the decimal point , it loses
precision and prints
a = 1.123457 i.e 6 digits after decimal point.
How do I get it to read 7 digits after the decimal point?
: If I enter “a” as 1.1234567 i.e. 7 digits after the decimal point , it loses
: precision and prints
: a = 1.123457 i.e 6 digits after decimal point.
: How do I get it to read 7 digits after the decimal point?
Are you printing the value with enough precision? The docs state that the
default precision for ‘f’ is 6 decimal places, and they don’t say that the
‘l’ changes that.
Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems
If I enter “a” as 1.1234567 i.e. 7 digits after the decimal point , it loses
precision and prints
a = 1.123457 i.e 6 digits after decimal point.
How do I get it to read 7 digits after the decimal point?