---
title: doubleValue
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsstring/doublevalue
---

# doubleValue

The floating-point value of the string as a double.

## Declaration

```swift
var doubleValue: Double { get }
```

## Discussion

Discussion This property doesn’t include any whitespace at the beginning of the string. This property is HUGE_VAL or –HUGE_VAL on overflow, 0.0 on underflow. This property is 0.0 if the string doesn’t begin with a valid text representation of a floating-point number. This property uses formatting information stored in the non-localized value; use an Scanner object for localized scanning of numeric values from a string.

## See Also

### Related Documentation

- [scanDouble(_:)](foundation/scanner/scandouble(_:).md)

### Getting Numeric Values

- [floatValue](foundation/nsstring/floatvalue.md)
- [intValue](foundation/nsstring/intvalue.md)
- [integerValue](foundation/nsstring/integervalue.md)
- [longLongValue](foundation/nsstring/longlongvalue.md)
- [boolValue](foundation/nsstring/boolvalue.md)
