What the difference between double and long data types
Comments
-
Hey @scboyce -
Is this something you're working through in Workbench or as a DataFusion?
These definitions are from the Help Center - Combining DataSets Using DataFusion
- LONG stores numbers as numeric values, including decimal, fractional, and whole numbers.
- DOUBLE stores double-precision floating point number values.
- STRING stores alphanumeric characters as text.
- DATETIME stores year, month, day, hour, minute, and second values.
- DATE stores year, month, and day values.
- TIME stores hour, minute, and second values.
Beyond that, DOUBLE stores decimal values with a higher precision (24-53 digits) than a FLOAT type. LONG is used when a wider range than INT is needed.
Let me know if this helps!
0 -
Hmm It seems my first reply did not actually make it to the forum.
Somewhat. I saw those descriptions in the help as well, but they are not very technical.
For example, integers seem to want to be stored as LONGs, but that seems overkill, based just on the name. But then again, since I can't find technical specifications on what a LONG actuall is, I don't know.
0 -
@PEAKS_valleys, can you provide further insight?
0 -
Hey @scboyce -
I'm assuming that the data types being used are because Domo is making sure to accommodate for different length numeric and string values (storage) and for efficiency reasons. For example, double floating point numbers have larger ranges than Decimal numbers and Double is the most efficient floating-point data type. Double variables can hold numbers as small as -4.94065645841246544E-324 for negative values and 4.94065645841246544E-324 for positive values
Long variables accomodate interger numbers larger than Interger data types. Long variables can hold numbers from -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807. Operations with Long are slightly slower than with Integer but accomodate larger intergers.
0 -
I can't for the life of me figure out why this is happening and preventing me from blending two nearly identical data sets. I've tried adding decimal places to numbers and removing them and I can't figure this out. The blend wont work until I get that Volume field to come in as a "Double." Loosing mind...please help.
0 -
I think I fixed it and found the bug. Changing the data after the file has been uploaded does not impact how the data is defined (as Long or as Double). I took the exact same data set and reuploaded it after changing the value and it came in as a Double instead of Long when I added some decimals.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive