CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 [resolved] - ccformatnumber

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 10/29/2010, 4:52 AM

I´ve resolved with the string functions :-D

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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.