X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fformatting%2Fformatting.factor;h=1b1bc8c2afb5cce2ccab3a9ba5e44c1eaced9056;hp=55ebdf1442d6073c73984c767c6a69dfec241947;hb=3f3d57032bf29190e9bee12d168a4bce6d74653c;hpb=cd1bb8f4c8afba318249c7b756a45aa1c46ea51e diff --git a/basis/formatting/formatting.factor b/basis/formatting/formatting.factor index 55ebdf1442..1b1bc8c2af 100644 --- a/basis/formatting/formatting.factor +++ b/basis/formatting/formatting.factor @@ -1,11 +1,9 @@ ! Copyright (C) 2008 John Benediktsson ! See http://factorcode.org/license.txt for BSD license - USING: accessors arrays assocs calendar combinators fry kernel generalizations io io.streams.string macros math math.functions math.parser peg.ebnf quotations sequences splitting strings unicode.categories unicode.case vectors combinators.smart ; - IN: formatting = ] [ 1.0 < ] bi or ] [ dup 10.0 >= - [ 10.0 / [ 1+ ] dip ] - [ 10.0 * [ 1- ] dip ] if + [ 10.0 / [ 1 + ] dip ] + [ 10.0 * [ 1 - ] dip ] if ] while ] keep 0 < [ neg ] when ;