From 1945b8f54cd62c7d6dd811586ee21bf43d6794a6 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Fri, 18 Mar 2022 14:01:44 -0700 Subject: [PATCH] math.parser: adding >dec alias to number>string --- core/math/parser/parser.factor | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/math/parser/parser.factor b/core/math/parser/parser.factor index 0802242165..6284e66c32 100644 --- a/core/math/parser/parser.factor +++ b/core/math/parser/parser.factor @@ -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" ] } -- 2.34.1