Question: String and parse on decimal number

Do you think the result of String(0.016)  should be "0.016"  instead of ".16e-1" ?

Any reason why it gives the second form and not the first?  Now have to keep using sprintf to force formating as decimal point. Is this documented somewhere? quick search did not find anything do far.

Maple 2024.2 on windows.

s:="0.016";

"0.016"

z:= :-parse(s);

0.16e-1

String(z);

".16e-1"

sprintf("%0.3f",z);

"0.016"

 

 

Download string_of_decimal_number.mw

Please Wait...