]> gitweb.factorcode.org Git - factor.git/blobdiff - core/math/parser/parser.factor
math.parser: move (format-float) to formatting.private
[factor.git] / core / math / parser / parser.factor
index 778c754981c151c02527627f753bc75a14bfedd7..65e510bb9801eacccc26ced87e49f0f88fcac0fb 100644 (file)
@@ -5,20 +5,6 @@ layouts make math math.order math.private sbufs sequences
 sequences.private strings ;
 IN: math.parser
 
-<PRIVATE
-PRIMITIVE: (format-float) ( n fill width precision format locale -- byte-array )
-
-: format-string ( format -- format )
-    0 suffix >byte-array ; foldable
-
-! Used as primitive for formatting vocabulary
-: format-float ( n fill width precision format locale -- string )
-    [ format-string ] 4dip
-    [ format-string ] bi@
-    (format-float) >string ; inline
-
-PRIVATE>
-
 : digit> ( ch -- n )
     {
         { [ dup CHAR: 9 <= ] [ CHAR: 0 -      dup  0 < [ drop 255 ] when ] }