Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2005, 05:56 PM
Authorized User
 
Join Date: Jan 2005
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default more decimals

When I use a dynamic text field (as a dynamic form element) I have the possibility to "Format" it to "Number - 2 Decimal places" but... I want to use 4 decimal places instead.

What do I have to change in the code generated (given below):

<%= FormatNumber((rsQryPurchases.Fields.Item("Shares") .Value), 2, -2, -2, -2) %>

Thanks a lot!



 
Old September 27th, 2005, 03:01 AM
Authorized User
 
Join Date: Aug 2005
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried and did get 4 decimal with <%= FormatNumber((rsQryPurchases.Fields.Item("Shares") .Value), 4, -2, -2, -2) %>


 
Old September 29th, 2005, 07:05 AM
Authorized User
 
Join Date: Jan 2005
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Thanks, Lofa! It worked.
(I should have imagined this small modification, shouldn´t I?!!)

All the best,
fskilnik.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Decimals in charts chetuzz2 Excel VBA 0 July 29th, 2008 02:30 AM
fractions to decimals mjuliao Access 5 November 2nd, 2005 05:37 PM
Thousands and Decimals - Notation fskilnik Dreamweaver (all versions) 3 October 4th, 2005 02:35 PM
Displaying decimals in C# alfonz ASP.NET 1.0 and 1.1 Basics 3 September 20th, 2004 01:51 PM
truncating to 2 decimals msrnivas Classic ASP Components 4 July 7th, 2004 02:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.