Edward Z. Yang
3a2fd0b5db
Improve floating point scaling in UnitConverter.
...
When precision dictates that a number be zero padded, we cannot give sprintf()
a negative precision specifier. This commit implements manual negative precision
printing of floats, taking into account common rounding errors with floating
point numbers.
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
2008-10-24 12:50:59 -04:00
..
2008-06-17 03:12:50 +00:00
2008-10-06 14:51:03 -04:00
2008-08-15 18:57:44 -04:00
2008-04-21 15:24:18 +00:00
2008-06-24 22:02:16 -04:00
2008-04-22 06:40:04 +00:00
2008-08-15 18:57:44 -04:00
2008-09-27 21:19:35 -04:00
2008-10-23 17:11:29 -04:00
2008-09-01 14:10:10 -04:00
2008-10-08 17:06:10 -04:00
2008-05-23 16:43:24 +00:00
2008-10-01 15:40:31 -04:00
2008-07-07 08:57:16 -04:00
2008-08-15 13:12:54 -04:00
2008-05-23 16:43:24 +00:00
2008-02-18 04:41:42 +00:00
2008-04-21 15:24:18 +00:00
2008-05-25 05:40:20 +00:00
2008-04-21 15:24:18 +00:00
2008-02-18 04:41:42 +00:00
2008-04-21 23:28:52 +00:00
2008-08-18 22:13:58 -04:00
2008-04-21 15:24:18 +00:00
2008-08-15 18:57:44 -04:00
2008-05-23 16:43:24 +00:00
2008-04-15 03:33:09 +00:00
2008-04-15 03:33:09 +00:00
2008-04-15 03:33:09 +00:00
2008-04-23 02:40:17 +00:00
2008-04-21 15:24:18 +00:00
2008-04-21 15:24:18 +00:00
2008-04-21 15:24:18 +00:00
2008-04-26 19:28:14 +00:00
2008-02-18 04:41:42 +00:00
2007-11-25 02:24:39 +00:00
2008-04-23 02:40:17 +00:00
2008-04-21 23:28:52 +00:00
2008-10-23 15:22:31 -04:00
2008-02-18 04:41:42 +00:00
2008-04-21 15:24:18 +00:00
2008-04-28 19:52:13 +00:00
2008-09-15 19:08:58 -04:00
2008-04-21 15:24:18 +00:00
2008-06-24 22:36:27 -04:00
2008-05-20 01:19:00 +00:00
2008-06-09 01:23:05 +00:00
2008-02-18 04:41:42 +00:00
2008-06-09 01:23:05 +00:00
2008-04-23 02:40:17 +00:00
2008-07-07 08:59:33 -04:00
2008-02-18 04:41:42 +00:00
2008-02-18 04:41:42 +00:00
2008-05-15 23:04:46 +00:00
2008-05-26 04:05:48 +00:00
2008-05-21 01:56:48 +00:00
2008-09-05 14:04:23 -04:00
2008-05-14 02:19:00 +00:00
2008-02-18 04:41:42 +00:00
2008-07-07 08:57:16 -04:00
2008-04-21 15:24:18 +00:00
2008-04-21 15:24:18 +00:00
2008-02-18 04:41:42 +00:00
2008-04-21 15:24:18 +00:00
2008-10-24 12:50:59 -04:00
2008-05-26 16:26:47 +00:00
2008-04-21 15:24:18 +00:00
2008-04-21 15:24:18 +00:00
2008-05-14 02:19:00 +00:00
2008-02-18 04:41:42 +00:00
2008-04-21 15:24:18 +00:00
2008-05-21 02:58:41 +00:00
2008-03-05 03:51:09 +00:00