CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Format Decimal Places

Print topic Send  topic

Author Message
Walter
Posted: 06/28/2002, 8:25 PM

I am looking for a solution to format the calculated numbers on my search results page to to decimal places. Any help would be appreciated.

Currently using ASP with templates.
Nicole
Posted: 06/29/2002, 3:40 AM

Walter,
use FormatNumber function to display the desired number of decimals.
- in CC create form Before Show event
fldfield_name = FormatNumber(fldfield_name, 2)
- in CCS create Before Show Row event
form_name.fiel_name.Value = FormatNumber(form_name.fiel_name.Value, 2)

Refer to MSDN article for more information about FormatNumber() function:
http://msdn.microsoft.com/library/default.asp?url=/libr...ormatNumber.asp

   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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