kellcomnet | 2018-12-10 19:56:17 UTC | #1
TrustedOrgBillingClient.GetBillingTrusteebillingoverviewTrustorOrgId
Why are the quantities and prices strings and not double, decimal, float etc?
tim.smith | 2018-12-10 21:22:07 UTC | #2
According to the dev team, they wanted to communicate the values as strings so client applications would be required to implement parsing logic just in case any decimal numbers exceeded the maximum precision allowed by the data type in the consuming language. (e.g. a Java double has 16 digits of precision, so sending 1.00000000000000001 would cause Java to truncate the final digit causing a loss of data).
system | 2019-01-10 21:22:11 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 4154