User Tools

Site Tools


en:numericconstants

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
en:numericconstants [2016/01/01 22:41]
127.0.0.1 external edit
en:numericconstants [2016/08/14 15:33]
admin
Line 1: Line 1:
 ===== Numeric Constants ===== ===== Numeric Constants =====
-Numeric constants are any numeric characters, preceded by an optional minus sign to indicate negative numbers, and an optional decimal followed by more numeric characters to indicate floating point values.  Examples of decimal numbers includes:+Numeric constants are any numeric characters, preceded by an optional minus sign to indicate negative numbers, and an optional decimal followed by more numeric characters to indicate floating point values.  Numbers come in two types: 1) integers and 2) decimal numbers.
  
-^Decimal Numbers^+Examples include: 
 + 
 +^Integer Numbers^
 |10| |10|
 +|-2345|
 +|0|
 +
 +Positive integer values may also be expressed in binary (base 2), octal (base 8), and hexadecimal (base 16).  Precede binary values with 0b (0b1110 = 14), octal with 0o (0o177 = 127), and hexadecimal with 0x (0xff = 255).
 +
 +^Decimal Numbers^
 |-234.567| |-234.567|
 |56.87| |56.87|
Line 18: Line 26:
 |2e-1|0.2| |2e-1|0.2|
 |5.12e-9|0.00000000512| |5.12e-9|0.00000000512|
- 
-Positive integer values may also be expressed in binary (base 2), octal (base 8), and hexadecimal (base 16).  Precede binary values with 0b (0b1110 = 14), octal with 0o (0o177 = 127), and hexadecimal with 0x (0xff = 255). 
  
en/numericconstants.txt · Last modified: 2020/02/28 10:46 (external edit)