Skip to content

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:

text
[ws][sign][integral-digits[,]]integral-digits[.[fractional-digits]]|.[fractional-digits][e[sign]exponential-digits][ws]
ItemBehaviourDescription
wsOptionalWhite space.
signOptionalMinus sign indicating a negative Single value.
integral-digitsRequired if fractional-digits is not presentA 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.
,OptionalA culture-specific thousands separator symbol.
.OptionalA culture-specific decimal point symbol.
fractional-digitsOptionalA series of digits ranging from 0 to 9 that specify the fractional part of the number.
eOptionalIndicates an exponential (scientific) notation.
exponential-digitsOptionalA series of digits ranging from 0 to 9 that specify an exponent.

Predefined values

The following is a list of predefined Single values:

Default value0
Minimum value-3.402823e38
Maximum value3.402823e38

For more information refer to the Single.Parse Method topic in MSDN.