Click to See Complete Forum and Search --> : Help With Money!


Vasilli
11-07-2003, 12:01 AM
Hi All

I am sure this is going to be such a simple thing!, but I have a bit of a problem with a script I wrote(calculator thing) that works out how much an order will be.

It is a form that is submitted and then the user is sent a confirmation of order email that will have something like this on it

10 paperclips @ $1.15 each $11.50

However, as the 11.50 has a trailing zero, it is taken off to produce

10 paperclips @ $1.15 each $11.5

is there a function/command that will treat all numbers in a money format(that does not require an add-on like the money_format()) one does.

Please help me.

Ta Jono

Khalid Ali
11-07-2003, 06:13 AM
Originally posted by Vasilli
Hi All
is there a function/command
I think I am confused...

you want a function to work with that will format the numbers in a certain format,however,you do not want a function such as
money_format()
and probably you don't wanna use
number_format()
as well???

question is how come you do not want to use built in functions and are looking for someother function?????

veryy

:confused: :confused:

Vasilli
11-07-2003, 05:31 PM
Thanks for the reply Khalid.

I have sinc figured out what i was doing wrong with the number_format(). it was a stupid little mistake that cost me alot of time!! as they always do might i add.

Thanks for getting back so fast!, and don't worry, when i re-read the post, it didn't make sense to me neither!


Ta Jono