|
|
The number perl script will print the English name of a number. One can print names of extremely large numbers . Number can be run on the command line, or as a CGI script when run as 'number.cgi'. Number prints names in both the American and European naming system. It can also print the decimal expansion of a number in either naming system.
a perfect square when it is the product of two identical integer factors
Natural Number 0, 1, 2, 3, ... Integer..., --- 1, 0, 1, 2, 3, ... Even Number ..., --- 2, 0, 2, 4, 6, ... Odd Number... --- 1, 1, 3, 5, ... Decimal. 35, 0. 98, -. 45, ... Repeating Decimal = . 333 ..., . 626262 ..., . 03777 ... Rational Number, -. 45, 27 A rational number is a number than can be expressed as a fraction. Irrational Number, An irrational number is a number that cannot be expressed as a fraction. Real Number, 2, 1.8, -9, …. A real number is either a rational number or an irrational number. In general, we may represent a real number on the number line.
Converts a character string starting at address $ADDR into a double cell signed number using the value in BASE. The ADDR parameter points to a length byte. NUMBER is deferred and is changed when the floating point system is active. If a decimal point is present in the string, the value in DPL will reflect the number of digits following it; otherwise DPL contains -1. If the string cannot be converted, it is printed on the standard output device, and the ERROR exit is taken. : ADDONE ( -- , convert add & print ) BL WORD NUMBER ( -- d ) DROP 1+ . ; ADDONE 1234 ( prints 1235 ) Related Words: ERROR NUMBER? CONVERT DPL
Attempt to convert the string at address $ADDR to a number, using the current value of BASE. If successful , return the double number and true; otherwise return false. Standards: JForth unique. Related Words: NUMBER CONVERT
A data type. NUMBER(4) - four digits no decimals, NUMBER(6,2) – 6 digits including 2 decimals.
In this Standard, number used without other qualification means integer. Similarly, double number means double-cell integer.
|