diff --git a/core/math/parser/parser.factor b/core/math/parser/parser.factor index 43abb5a010..ffb2293f22 100644 --- a/core/math/parser/parser.factor +++ b/core/math/parser/parser.factor @@ -408,7 +408,8 @@ M: ratio >base : float>base ( n base -- str ) { { 16 [ float>hex ] } - [ drop "%.16g" format-float ] + { 10 [ "%.16g" format-float ] } + [ "Invalid base" throw ] } case ; inline PRIVATE>