[ic] Really strange [calc] evaluationinterchange-users at icdevgroup.org

Grant emailgrant at gmail.com
Thu Jan 28 20:03:31 UTC 2010


>> Actually, I think it's more like:
>>
>> [tmp floating_point_error_check][calc] sprintf("%.3f",([scratch
>> total])) [/calc][/tmp]
>> [if scratch floating_point_error_check eq -0.000]
>>    [tmpn total]0[/tmpn]
>> [/if]
>
> That's all well and good, but you can normalize -0.000 just by adding 0
> to it:
> [calcn]$Tag->tmp('total', sprintf('%.3f", $Scratch->{total})+0)[/calcn]
>
> Peter

That works perfectly, thank you very much.

- Grant



More information about the interchange-users mailing list