Re: [PHP] how to keep decimals from rounding

2003-08-26 Thread Rob Yelvington
Curt, thanks for the reply and the suggestion. Truncating is exactly what I will do. Thanks! ~Rob Curt Zirzow wrote: * Thus wrote Rob Yelvington ([EMAIL PROTECTED]): Is there a way to surpress round() or number_format() from rounding decimal places? I have a value of ".253338" being returne

Re: [PHP] how to keep decimals from rounding

2003-08-26 Thread Curt Zirzow
* Thus wrote Rob Yelvington ([EMAIL PROTECTED]): > Is there a way to surpress round() or number_format() from rounding > decimal places? > > I have a value of ".253338" being returned via a calc function. > > I take that value and multiply by 100 because I want "25.333" to be > displayed. > >

[PHP] how to keep decimals from rounding

2003-08-25 Thread Rob Yelvington
Is there a way to surpress round() or number_format() from rounding decimal places? I have a value of ".253338" being returned via a calc function. I take that value and multiply by 100 because I want "25.333" to be displayed. I've used round(), sprintf(), and number_format() and each of them