Re: Decimal Puzzle

2005-03-03 Thread Gleb Paharenko
Hello. I designated a field Decimal 3,1. When I put a PHP query on my page, it displayed 450 as 450, but it rounded the fractions off, turning 24.8 into 25. I think - the problem is in number_format() function. From the PHP manual: If only one parameter is given, number will be

Decimal Puzzle

2005-03-02 Thread David Blomstrom
I apologize if this is a double post, but it appears that my first message didn't transmit for some reason. Anyway, I'm having a weird problem with decimals. Imagine a field with just two numerals - 450 and 24.8. You want to display them as 450 and 24.8, not 450.05 and 24.8 or 450 and 3. I