mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
change error printing from errnum to errsym
When printing an error, calc used to print the errnum (error number): ; 1/0 Error 10001 Calc now prints the errsym (errsym): ; 1/0 Error E_DIVBYZERO Added errsym E_LN_3 for ln(0). Added errsym E_LOG_5 for log(0). Added errsym E_LOG2_4 for log2(0). Added errsym E_LOGN_6 for logn(0,base).
This commit is contained in:
@@ -22,7 +22,7 @@ EXAMPLE
|
||||
; scan(a, 0, c, d)
|
||||
; 2+3 b=a^2 3+4i 3+"a"
|
||||
; print a,b,c,d
|
||||
5 25 3+4i Error 3
|
||||
5 25 3+4i Error E_ADD
|
||||
|
||||
LIMITS
|
||||
The number of arguments is not to exceed 1024.
|
||||
@@ -33,7 +33,7 @@ LINK LIBRARY
|
||||
SEE ALSO
|
||||
fscan, strscan, fscanf, strscanf, scanf, printf, fprintf
|
||||
|
||||
## Copyright (C) 1999-2006 Landon Curt Noll
|
||||
## Copyright (C) 1999-2006,2023 Landon Curt Noll
|
||||
##
|
||||
## Calc is open software; you can redistribute it and/or modify it under
|
||||
## the terms of the version 2.1 of the GNU Lesser General Public License
|
||||
|
Reference in New Issue
Block a user