Kill trailing 0s when converting from number->text
Created by: dvkt
Possible solution for #33 (closed)
Using this code:
DATA:
t is text
PROCEDURE:
store 3.14 in t
display t crlf
store 100 in t
display t crlf
store 88.0123456789 in t
display t crlf
Output before this patch:
3.140000
100
88.012346
After this patch:
3.14
100
88.0123456789
I looked into overriding the default std::to_string(double)
but it apparently can't be done, and also the precision can't be changed from 6, but maybe there's another cleaner way?