mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Modify number formatting so that 1e-3 renders as 0.001, not .001
This commit is contained in:
@ -4247,6 +4247,7 @@ jvp_dtoa
|
||||
*b = 0;
|
||||
}
|
||||
else if (decpt <= 0) {
|
||||
*b++ = '0';
|
||||
*b++ = '.';
|
||||
for(; decpt < 0; decpt++)
|
||||
*b++ = '0';
|
||||
|
Reference in New Issue
Block a user