-
Notifications
You must be signed in to change notification settings - Fork 45
Numeric constant
Øyvind Kallstad edited this page Sep 14, 2017
·
2 revisions
Real numbers are numbers that conform to one of the following forms:
[+|-] digits . digits [e [(+|-)] digits] [(d|l)] [(kb|mb|gb|tb|pb)]
[(+|-)] . digits [e [(+|-)] digits] [(d|l)] [(kb|mb|gb|tb|pb)]
[(+|-)] digits . [e [(+|-)] digits] [(d|l)] [(kb|mb|gb|tb|pb)]
[(+|-)] digits [e [(+|-)] digits] [(d|l)] [(kb|mb|gb|tb|pb)]
-999e-10dmb
+6.e-6lkb
+.6
-.9e+5dmb
.6tb
+4.9e+5dmb
4.5
-9.9
+7.4
The following scopes are assigned to real numbers:
- constant.numeric.real
Integers are numbers that conform to the following form:
[(+|-)] digits [(d|l)] [(kb|mb|gb|tb|pb)]
7
-100
+73kb
The following scopes are assigned to real numbers:
- constant.numeric.integer
Hexadecimal numbers are numbers that conform to the following form:
0x 0-f [l] [kb|mb|gb|tb|pb]
0x9
0x25l
The following scopes are assigned to real numbers:
- constant.numeric.hex
Use
- Prerequisites
- Workflow
- Tests
- Comment
- String
- Numeric constant
- Type
- Function
- Command (Cmdlet)
- Class
- Enum
- Switch
- Array
- Hashtable
- Subexpression
- Control
- Variable
- Operator