English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

In the following (taken from an XML Schema), MUST the monetary amount always contain 2 digits? And if it doesn't have to have two digits to the right of the decimal, can all 12 digits then be used to the left of the decimal?

xs:simpleContent>




2007-07-31 04:45:34 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

AP: I had seen the definition, but they use the word "allowed". If they used the word "required" then I'd say there can be no fewer than 12 digits and no more than 12 digits. "Specifies the exact number of digits allowed. Must be greater than zero."

2007-07-31 05:19:22 · update #1

1 answers

I believe that fractionDigits specifies the maximum decimal places allowed so you can have less than 2 decimal digits.

Also totalDigits specifies the exact number of digits allowed. This could indicate that you must always have 12 digits. It may also be an allowed maximum number of digits.

2007-07-31 05:02:37 · answer #1 · answered by AnalProgrammer 7 · 0 0

fedest.com, questions and answers