CodeChargeMVP
Posts: 473
|
| Posted: 10/27/2010, 10:04 AM |
|
hi,
¿is anyone able to give an example of how use this function?
Not an explanation of parameters, i mean an example
of how use it
Thank you ver much in advance.
http://forums.codecharge.com/posts.php?post_id=90545
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 10/29/2010, 2:00 AM |
|
¿what´s an correct array construction for this function?
¿What´s wrong on this sentence?
$prueba = CCFormatNumber($this->DataSource->JFImpEuros->GetValue(),"##.##",ccsFloat,false);
I just wanna format a two fields from database which has values this way:
34.5678899 ---------> 34.56
0.6788979 ----------> 0.67
On javascript was so easy with all the resources than I had lenght,indexOf etc..
is that so hard to do on php?
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 10/29/2010, 4:52 AM |
|
I´ve resolved with the string functions 
strpos,strlen,substr and doing a casting to double.
But if anybody has an example of using this function will be easyer for all of us.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
|