Interchange Developer Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] How to display as integer



> > > Currently this gets displayed
> > > as for example "10.00" but I want it to show up as "10". Any ideas
> >          return sprintf("%d",$arg);
>
> return int($arg) is a little bit more straightforward.

You're absolutely right, you caught me making a quick hack ;) The tag 
originally formatted the number as %.2f as format, to print a number with 
two decimals after the point/comma.

Regards,

Marc Brevoort


Search for: Sort by: