keyongtech


  keyongtech > php > 10/2005

 #1  
10-17-05, 10:15 AM
Marcos
Hi,

Well, I'm developing one application that will have support for many
languages and countries, in the application I need to show and to format
the currency for the chosen country, is there any way to format the value?

As a side note, the value comes from a database with format XXXX.XX where
the point(.) is the decimal separator, always.
 #2  
10-17-05, 02:38 PM
Marcel
"Marcos" <mjs_ops> schreef in bericht
news:4sy3
> Hi,
>
> Well, I'm developing one application that will have support for many
> languages and countries, in the application I need to show and to format
> the currency for the chosen country, is there any way to format the value?
>
> As a side note, the value comes from a database with format XXXX.XX where
> the point(.) is the decimal separator, always.
>
> --


I've build this one to get (EURO) values like 123.234,56:

function fmoney($val) {

$val = "&euro; ".number_format((round($val,2)), 2, ',', '.');

return $val;

}
Similar Threads
monetary values

Why do monetary values show up as the pound sign's?

Monetary calculations in CL

This was posted on reddit -- [..] Printed representations aside (that can be taken care of with ~$), how do you perform monetary calculations in CL? One way is to represent...

locale, format monetary values

Hi, Can I use locale to format monetary values? If yes, how? If no, is there something I can use? E.g., I have 10000 and I want to get "$10,000". Thanks, Ray

Format monetary amount to 9 digits with No decimals without rounding

I need to convert a standard dollar amount (eg 157.62) to a 9-digit number without decimals or rounding (eg 000015762). The formulas I've tried so far are: For Each rw In...

DateTime.Parse converts a UK format monetary sum into a date

Hi group, If you take the following code, the result is not, as one would expect, an exception, but rather the string "01/12/0500" DateTime dt = DateTime.Parse("£12,500",...


All times are GMT. The time now is 07:46 PM. | Privacy Policy