]> gitweb.factorcode.org Git - factor.git/commitdiff
math.parser: adding >dec alias to number>string
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 18 Mar 2022 21:01:44 +0000 (14:01 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 18 Mar 2022 21:01:44 +0000 (14:01 -0700)
core/math/parser/parser.factor

index 0802242165be09e5eec922695e551dac770b1e93..6284e66c32568b2bd763cc9d96c7dea168acacf2 100644 (file)
@@ -488,6 +488,8 @@ GENERIC#: >base 1 ( n radix -- str )
 : >oct ( n -- str ) 8 >base ; inline
 : >hex ( n -- str ) 16 >base ; inline
 
+ALIAS: >dec number>string
+
 M: integer >base
     {
         { [ over 0 = ] [ 2drop "0" ] }