Single Value Type
Overview
The Single value type represents a single-precision 32-bit number.
For more information refer to the Single Structure topic in MSDN.
Definition
A Single value type is defined in the following manner:
[ws][sign][integral-digits[,]]integral-digits[.[fractional-digits]]|.[fractional-digits][e[sign]exponential-digits][ws]
| Item | Behaviour | Description |
|---|---|---|
| ws | Optional | White space. |
| sign | Optional | Minus sign indicating a negative Single value. |
| integral-digits | Required if fractional-digits is not present | A series of digits ranging from 0 to 9 that specify the integral part of the number. Runs of integral-digits can be partitioned by a group-separator symbol. |
| , | Optional | A culture-specific thousands separator symbol. |
| . | Optional | A culture-specific decimal point symbol. |
| fractional-digits | Optional | A series of digits ranging from 0 to 9 that specify the fractional part of the number. |
| e | Optional | Indicates an exponential (scientific) notation. |
| exponential-digits | Optional | A series of digits ranging from 0 to 9 that specify an exponent. |
Predefined values
The following is a list of predefined Single values:
| Default value | 0 |
| Minimum value | -3.402823e38 |
| Maximum value | 3.402823e38 |
Configuration
A Single attribute value configuration has the following format:
<exampleElement exampleAttribute="123.456" />
For more information refer to the Single.Parse Method topic in MSDN.
Customer support service by UserEcho