John Benediktsson
|
13e7ed3986
|
math.parser: allow 0B, 0O, and 0X number prefixes.
|
2017-06-15 15:53:01 -07:00 |
Doug Coleman
|
7c7bb93c55
|
factor: Rename GENERIC# to GENERIC#:.
Fixes #1670.
|
2017-06-01 13:58:58 -05:00 |
Jon Harper
|
3760c965af
|
core.math, bignum/f, shift subnormals before rounding. Fixes #1782
|
2017-01-23 10:12:20 -08:00 |
Alexander Iljin
|
16403bb0c9
|
math.parser: add missing blank line between words
|
2017-01-02 09:33:10 -08:00 |
Björn Lindqvist
|
bbd71ae975
|
math.parser: (format-float) doesn't need to zero-terminate returned byte-array
|
2016-10-09 00:47:37 +02:00 |
Jon Harper
|
0b98eb121e
|
math.parser: number>string, don't throw zero division on '1/0'
|
2016-03-30 14:29:37 -07:00 |
Doug Coleman
|
20aadd5688
|
core: rename some double paren words.
|
2016-03-25 03:13:27 -07:00 |
John Benediktsson
|
59b41e4f90
|
math.parser: adding bytes>hex-string and hex-string>bytes.
|
2016-03-16 10:13:56 -07:00 |
Jon Harper
|
7eaa24b3e0
|
math.parser: simplify fix-float (from 16c93c7874 )
|
2016-03-08 07:55:25 -08:00 |
Jon Harper
|
19fadb6c96
|
prettyprinter, locale independant float printing
|
2016-03-08 07:55:25 -08:00 |
John Benediktsson
|
ceb75057da
|
change ERROR: words from throw-foo back to foo.
|
2015-08-13 16:13:05 -07:00 |
Doug Coleman
|
02008979d9
|
factor: Change ERROR: foo ; to define ``throw-foo`` instead of having ``foo`` throw implicitly. The old ``foo`` still throws implicitly because this is a big change to get right in one patch, but it should be removed soon.
|
2015-08-12 15:26:18 -05:00 |
John Benediktsson
|
a8b3642c8c
|
math.parser: make float-parse:point a fixnum.
|
2015-07-30 18:16:31 -07:00 |
John Benediktsson
|
b3323c15bd
|
math.parser: some inline, some fixnum+fast, some disable tests.
|
2015-07-30 17:59:21 -07:00 |
Jon Harper
|
8d827b2772
|
math.parser: support >bin and >oct for floats
This is for symmetry with "0o1p0", "0b1p0", bin> and hex> which
all already work
|
2015-07-30 11:04:51 -07:00 |
Jon Harper
|
09af182db7
|
math.parser, don't take infinite time to parse huge exponents
|
2015-07-30 11:04:51 -07:00 |
Jon Harper
|
dce2ca1366
|
math.parser: don't lose precision in make-float-bin-exponent
|
2015-07-30 11:04:51 -07:00 |
John Benediktsson
|
296974a057
|
math.parser: remove digits>integer.
|
2015-07-19 19:18:47 -07:00 |
John Benediktsson
|
16c93c7874
|
math.parser: simplify fix-float.
|
2015-07-19 17:20:37 -07:00 |
John Benediktsson
|
0dbc5e7d67
|
math.parser: simplify { integer ratio } >base.
|
2015-07-19 16:57:45 -07:00 |
John Benediktsson
|
4cda3fe7c4
|
math.parser: re-use number-parse and float-parse objects.
|
2015-07-19 09:58:17 -07:00 |
John Benediktsson
|
c7868226d0
|
math.parser: simplify using member-eq?.
|
2015-07-16 09:55:33 -07:00 |
John Benediktsson
|
33a62c7f9d
|
math.parser: with-radix-char quot shouldn't get called with ``f``.
|
2015-07-16 08:51:58 -07:00 |
John Benediktsson
|
e280bafabe
|
math.parser: remove unnecessary with-no-radix, thanks @jonenst!
|
2015-07-16 07:35:51 -07:00 |
John Benediktsson
|
f6f596f40f
|
math.parser: okay time for sleep, maybe this works, sorry git history.
|
2015-07-14 22:48:08 -07:00 |
John Benediktsson
|
5b58e1d3e8
|
math.parser: fix a regression.
|
2015-07-14 22:05:25 -07:00 |
John Benediktsson
|
94bb834eae
|
math.parser: fix ``"-.5" dec>``.
|
2015-07-14 20:16:34 -07:00 |
John Benediktsson
|
866b40271d
|
math.parser: fix "most-negative-fixnum number>string string>number fixnum?".
|
2015-07-14 20:03:33 -07:00 |
Doug Coleman
|
44e8e7b344
|
primitives: Change PRIMITIVE: to check that the word is in that vocabulary and the stack effect is correct.
Use PRIMITIVE: in core/ and basis/
|
2015-06-25 18:02:03 -07:00 |
John Benediktsson
|
ccddbebf94
|
math.parser: slightly faster ((pow)).
|
2015-06-11 20:04:44 -07:00 |
John Benediktsson
|
9033a28c09
|
math.parser: simplify store-exponent.
|
2014-11-29 14:31:23 -08:00 |
John Benediktsson
|
38bc43b968
|
math.parser: whoops, this part shouldn't have been committed.
|
2014-11-29 12:54:48 -08:00 |
John Benediktsson
|
cbba812d7e
|
math.parser: remove float>string, speedup format-float.
|
2014-11-29 12:47:57 -08:00 |
Doug Coleman
|
632ee276e1
|
core: Remove trailing whitespace.
|
2014-10-31 01:14:31 -07:00 |
John Benediktsson
|
ff72d10fda
|
math.parser: don't use variables in M\ ratio >base.
|
2013-03-28 14:31:55 -07:00 |
John Benediktsson
|
412382abca
|
math.parser: exactly allocate sbuf for fixnums.
|
2013-03-28 11:55:52 -07:00 |
John Benediktsson
|
bf0f6476f5
|
math.parser: do two digits down until 10.
|
2013-03-27 18:01:59 -07:00 |
John Benediktsson
|
b5b0839426
|
math.parser: faster using byte-arrays.
|
2013-03-27 17:54:24 -07:00 |
John Benediktsson
|
b7cb67bf76
|
math.parser: faster number>string.
|
2013-03-27 14:47:46 -07:00 |
Doug Coleman
|
3582a6c624
|
kernel: Add 4dup, 4drop, and 4cleave.
|
2012-10-22 09:47:34 -07:00 |
John Benediktsson
|
d1f3b326e5
|
math: using if-zero in more places.
|
2012-06-18 14:32:39 -07:00 |
John Benediktsson
|
bec49ff840
|
math.parser: simplify error types.
|
2012-06-08 07:32:01 -07:00 |
John Benediktsson
|
3967b19aa5
|
math.parser: better error messages suggested by @erg.
|
2012-06-06 15:12:33 -07:00 |
John Benediktsson
|
9dbeef4933
|
math.parser: only allow 10 and 16 base for float>base.
|
2012-06-06 14:50:07 -07:00 |
Joe Groff
|
c4bd4dc1cc
|
math.parser: hex> etc. shouldn't take radix prefix
Fixes #453
|
2011-12-16 17:20:05 -08:00 |
Doug Coleman
|
3ba787b277
|
core/basis: trim down using lists
|
2011-11-30 23:15:42 -08:00 |
Joe Groff
|
a97a9ede15
|
math.parser: don't accept hex float without expt
Part of #372
|
2011-11-26 15:15:46 -08:00 |
Joe Groff
|
e58afa8ab5
|
oops, radix prefixes shouldn't chain
|
2011-11-24 12:39:52 -08:00 |
Joe Groff
|
14efcc69ab
|
math.parser: reject "0x" etc. without any digits
|
2011-11-24 12:27:40 -08:00 |
Joe Groff
|
4b6559849f
|
math.parser: oops
|
2011-11-23 19:51:15 -08:00 |