So I have met a strange scenario where I have a list of numbers already rounded to 6 decimals and I am trying to compare those values with a specific number like 0.3.
Below are the formulas I have for the [KeyValu] field which is in fixed decimal format (19.6).
if [KeyValue]<0.3 then "True" else "False" endif, result for value 0.3 showing True
and then I tried to round the field and had below interesting result.
if round([KeyValue],0.1)<0.3 then "True" else "False" endif, result for value 0.3 showing False
if round([KeyValue],0.01)<0.3 then "True" else "False" endif, result for value 0.3 showing True
if round([KeyValue],0.001)<0.3 then "True" else "False" endif, result for value 0.3 showing True
if round([KeyValue],0.0001)<0.3 then "True" else "False" endif, result for value 0.3 showing True
if round([KeyValue],0.00001)<0.3 then "True" else "False" endif, result for value 0.3 showing False
if round([KeyValue],0.00001)<0.3 then "True" else "False" endif, result for value 0.3 showing True
..., result for value 0.3 showing True
if round([KeyValue],0.000000001)<0.3 then "True" else "False" endif, result for value 0.3 showing False
...
And then I also tried below.
if [KeyValue]<0.30 then "True" else "False" endif, result for value 0.3 (in 6 decimals which shows as 0.300000 in alteryx) shows False
if [KeyValue]<0.300 then "True" else "False" endif, result for value 0.3 (in 6 decimals which shows as 0.300000 in alteryx) shows False
if [KeyValue]<0.3000 then "True" else "False" endif, result for value 0.3 (in 6 decimals which shows as 0.300000 in alteryx) shows False
if [KeyValue]<0.30000 then "True" else "False" endif, result for value 0.3 (in 6 decimals which shows as 0.300000 in alteryx) shows True
if [KeyValue]<0.300000 then "True" else "False" endif, result for value 0.3 (in 6 decimals which shows as 0.300000 in alteryx) shows False
Does anyone know the tricks here? Thanks.