speed up dec>float a little
parent
cdd0e5774e
commit
943bde59f9
|
@ -83,8 +83,8 @@ SYMBOL: negative?
|
||||||
] if ; inline
|
] if ; inline
|
||||||
|
|
||||||
: dec>float ( str -- n/f )
|
: dec>float ( str -- n/f )
|
||||||
[ CHAR: , eq? not ] filter
|
[ CHAR: , eq? not ] BV{ } filter-as
|
||||||
>byte-array 0 suffix (string>float) ;
|
0 over push B{ } like (string>float) ;
|
||||||
|
|
||||||
: hex>float-parts ( str -- neg? mantissa-str expt )
|
: hex>float-parts ( str -- neg? mantissa-str expt )
|
||||||
"-" ?head swap "p" split1 [ 10 base> ] [ 0 ] if* ;
|
"-" ?head swap "p" split1 [ 10 base> ] [ 0 ] if* ;
|
||||||
|
|
Loading…
Reference in New Issue