What the difference between double and long data types
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
- 10.5K All Categories
- 8 Connect
- 918 Connectors
- 250 Workbench
- 467 Transform
- 1.7K Magic ETL
- 69 SQL DataFlows
- 477 Datasets
- 193 Visualize
- 252 Beast Mode
- 2.1K Charting
- 11 Variables
- 80 Cards, Dashboards, Stories
- 17 Automate
- 354 APIs & Domo Developer
- 89 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 246 Distribute
- 62 Domo Everywhere
- 243 Scheduled Reports
- 21 Manage
- 42 Governance & Security
- 173 Product Ideas
- 1.2K Ideas Exchange
- 12 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive