]> gitweb.factorcode.org Git - factor.git/commitdiff
calendar.format: use format-float more.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 29 Nov 2014 05:27:30 +0000 (21:27 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 29 Nov 2014 05:27:30 +0000 (21:27 -0800)
basis/calendar/format/format.factor

index aa024606071a2ed9cddad6c5eea2bd77bb49d601..df8312d56ffd247f9949469447d728ca1c6d5ac9 100644 (file)
@@ -137,7 +137,7 @@ M: timestamp year. ( timestamp -- )
 ! Should be enough for anyone, allows to not do a fancy
 ! algorithm to detect infinite decimals (e.g 1/3)
 : ss.SSSSSS ( timestamp -- )
-    second>> >float "%.6f" format-float 9 CHAR: 0 pad-head write ;
+    second>> >float "%09.6f" format-float write ;
 
 : (timestamp>rfc3339) ( timestamp -- )
     {