Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Byte versus Double | Applicable examples

alt_marsan
8 - Asteroid

Hi there!

Can you explain the difference and when to use 'Byte' versus 'Double' when assigning numeric data types.

Double seems to be the default in most examples I've seen. However, in some instances 'Byte' could be applicable.

 

Thank you!

alt_marsan

 

 

alt_marsan_0-1663258156852.png

 

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus

@alt_marsan ,

 

 if the domain of values are integers  0-255, then byte is perfect. 

cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
IraWatt
17 - Castor
17 - Castor

Hey @alt_marsan,

Ideally you want to choose a the smallest data type which contains your data. This is so that it takes up less memory. Doubles (Data Types | Alteryx Help) take up  more memory then a byte as it has (15 digits of precision) where as a byte can only take values ranging from 0-255 so takes up less space.

alt_marsan
8 - Asteroid

Thanks, Ira. It makes sense. Appreciate your explanation! :)

 

 

-alt_marsan

Labels