Skip to main content
Value Type

DoubleValue

Wrapper type for double-precision floating point values

Wraps primitive:double

DoubleValue

A wrapper type that encapsulates a double (64-bit floating point) value in API requests and responses.

Overview

DoubleValue is used in the Acumatica API to wrap double-precision floating point properties. This type is used for fields requiring floating point precision, though DecimalValue is more common for financial calculations.

JSON Structure

{
  "value": 3.14159265359
}

Examples

Reading a DoubleValue

{
  "Latitude": {
    "value": -33.8688
  },
  "Longitude": {
    "value": 151.2093
  }
}

Setting a DoubleValue

{
  "Latitude": {
    "value": -37.8136
  }
}

Properties

PropertyTypeDescription
valuedouble64-bit IEEE 754 floating point number
errorstringError message describing validation or processing issues with this field

Error Handling

All value wrapper types inherit an error property that contains a description when there is an issue with the field. Always check this property when processing API responses.

Precision Note

For financial calculations, prefer DecimalValue over DoubleValue as it provides exact decimal representation without floating point rounding errors.

Common Fields Using DoubleValue

  • Geographic coordinates (latitude, longitude)
  • Scientific measurements
  • Percentage values (in some cases)
  • Fields requiring floating point math