Super Richman
04/20/2023, 11:15 AMjavier ramirez
04/20/2023, 11:38 AMselect yourIntColumn::long * youtOtherIntColumn
, so the operands are treated as longSuper Richman
04/20/2023, 11:44 AMSELECT passenger_count,pickup_location_id,dropoff_location_id,passenger_count*pickup_location_id*dropoff_location_id*passenger_count*pickup_location_id*dropoff_location_id FROM trips
WHERE passenger_count*pickup_location_id*dropoff_location_id*passenger_count*pickup_location_id*dropoff_location_id<0
javier ramirez
04/20/2023, 11:48 AMJaromir Hamala
04/20/2023, 11:57 AMBolek Ziobrowski
04/20/2023, 12:04 PMSuper Richman
04/20/2023, 12:25 PMjoshszep
04/20/2023, 7:07 PMSuper Richman
04/21/2023, 8:36 AMJaromir Hamala
04/21/2023, 9:01 AMfloat
uses 32 bits while double
uses 64 bits. so each double
number uses twice the disk space of float
how are the extra bits used?
1. a wider range. float
can represent numbers as small as 1.18 x 10^(-38)
(=the smallest finite positive number) and as high as 3.4 x 10^38
while double
has this range from 2.23 x 10^(-308)
to 1.8 x 10^308
(both types are signed)
2. precision. float
can represent 7 to 8 decimal digits of precision while the double
has 15 to 17 decimal digits of precision.float
type is more than enough for many ML-related tasks. It’s my understanding weights in neural networks often use even smaller floating point types than 32 bits.