By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,563 Members | 1,058 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,563 IT Pros & Developers. It's quick & easy.

Whole number and decimal to the thousandths

P: 1
Hello,

In Adobe LiveCycle Designer 8 I have a form field that users should be able to us to enter a whole number followed by a fraction or a decimal number such as:

45 1/8 or 45.125

I prefer to give the user the ability to enter a two digit whole number followed by a fraction in 16ths of an inch. The script should convert the number and fraction to a whole number, a decimal point, and a decimal number to the thousandths place as shown above.

If the conversion is not possible, I will furnish the user a table showing the conversion from fractions by 16ths to decimals. If that's the case, I just need a script that will allow data entry of the number example above into a decimal field. It will run client side. Thanks.

John C Schmidt
mailto:<Email Removed>
Oct 4 '07 #1
Share this Question
Share on Google+
1 Reply


dmjpro
100+
P: 2,476
Hello,

In Adobe LiveCycle Designer 8 I have a form field that users should be able to us to enter a whole number followed by a fraction or a decimal number such as:

45 1/8 or 45.125

I prefer to give the user the ability to enter a two digit whole number followed by a fraction in 16ths of an inch. The script should convert the number and fraction to a whole number, a decimal point, and a decimal number to the thousandths place as shown above.

If the conversion is not possible, I will furnish the user a table showing the conversion from fractions by 16ths to decimals. If that's the case, I just need a script that will allow data entry of the number example above into a decimal field. It will run client side. Thanks.

John C Schmidt
mailto:<Email Removed>
Are you talking abut JavaScript?
Look, Java!=JavaScript.

Debasis jana
Oct 5 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.