DashboardToggles.HandleFloatingPointErrors Property
Gets or sets whether arithmetic errors related to floating point calculations are processed by the Dashboard error handling mechanism.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to process arithmetic errors related to floating point calculations using the Dashboard error handling mechanism; otherwise, false. |
Remarks
In v16.2 and earlier, the Dashboard controls return the Infinity and NaN values in cases when the calculation result is undefined or cannot be presented accurately. This behavior can result in such values being displayed as -Inf, Inf or Nan to end-users.
The HandleFloatingPointErrors property allows you to process such values with the built-in Dashboard error handling mechanism. This results in the following changes:
- End-users see a localized string (DashboardStringId.DashboardErrorValue) instead of -Inf, Inf or Nan.
- The MultiDimensionalData class returns a special value (DashboardSpecialValues.ErrorValue) instead of Infinity and NaN. ASPxClientDashboardItemData returns DashboardSpecialValues.ErrorValue. This means that you need to update your projects if they contain handling of the Infinity and NaN values.