From 7eaa24b3e08728bca63f531d848d89893d467d62 Mon Sep 17 00:00:00 2001 From: Jon Harper Date: Thu, 8 Oct 2015 00:08:34 +0200 Subject: [PATCH] math.parser: simplify fix-float (from 16c93c78741) --- core/math/parser/parser.factor | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/core/math/parser/parser.factor b/core/math/parser/parser.factor index 0c4ecd8934..4664c8b252 100644 --- a/core/math/parser/parser.factor +++ b/core/math/parser/parser.factor @@ -488,12 +488,13 @@ M: ratio >base base [ format-string ] 4dip [ format-string ] bi@ (format-float) dup [ 0 = ] find drop format-head ] [ - "C" = [ [ "G" = ] [ "E" = ] bi or "E" "e" ? fix-float ] [ drop ] if + "C" = [ [ "G" = ] [ "E" = ] bi or CHAR: E CHAR: e ? fix-float ] + [ drop ] if ] 2bi ; inline : float>base ( n radix -- str )