#421 wrong or incorrect error message for NUMERIC DIGITS

closed-fixed
Mark Hessling
None
5
2014-08-15
2014-01-26
No

all versions of Regina (3.3 ---> 3.7):

For the statement: numeric digits 2.123
Regina gives the error:

Error 26 running "D:\33.rex", line 2: Invalid whole number
Error 26.5: NUMERIC DIGITS value must be zero or a positive whole number; found "2.123"

The 2nd error message is incorrect (as least in part).

NUMERIC DIGITS ---can't--- be zero (it must be a positive integer).

In a related error:

 2 +++ numeric digits 0

Error 33 running "D:\30.rex", line 2: Invalid expression result
Error 33.1: Value of NUMERIC DIGITS "0" must exceed value of NUMERIC FUZZ "(0)"

which is true, but is a bit misleading.
Possibly, the error message used maybe should be a form of 26.5
(see above),

Error nnn.n: NUMERIC DIGITS value must be a positive whole number; found "0"

Discussion

  • Mark Hessling
    Mark Hessling
    2014-03-14

    • status: open --> pending
    • assigned_to: Mark Hessling
    • Group: v3.7 --> Next Release
     
  • Mark Hessling
    Mark Hessling
    2014-03-14

    Error 26.5 text in Regina is incorrect. It should state "NUMERIC DIGITS value must be a positive whole number;..."
    This has been fixed.
    Also NUMERIC DIGITS 0 will also now produce error 26.5

     
  • Mark Hessling
    Mark Hessling
    2014-06-08

    • Status: pending --> closed-fixed
    • Group: Next Release -->