function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rawiswarrawiswar 

double datatype's limit

i am trying to assign as double the following number and the system is not permitting this value. This value is crucial for my app:
339023139214287764096850194819
Please let me know what is happening. I don't find it over the limit assignable.
aalbertaalbert
Here is the documentation on the "double" data type in Apex:

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content/langCon_apex_primitives.htm


aalbertaalbert
Scratch that - I just got it to compile in an Apex Trigger. Trying adding the '.0' at the end of it.

Double dbl = 339023139214287764096850194819.0;

rawiswarrawiswar
My need is to be able to use a 30 digit number. Is there a data type that allows me to represent such a number?
This is really crucial. I was taking it for granted but didn't realize I would be stuck at this point.
rawiswarrawiswar
it does work with the decimal ... but I don't really want to use it ... it is a biginteger in java