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

Peter peter at pajamian.dhs.org
Thu Jan 28 03:47:50 UTC 2010


On 28/01/10 10:37, Grant wrote:
> 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




More information about the interchange-users mailing list