double

Top  Previous  Next

- minValue [4.9E-324]

- maxValue [1.7976931348623157E308]

- minExclusive [4.9E-324]

- maxExclusive [1.7976931348623157E308]

 

 

- scale [1] (0|1|2|3|4|5|6|7|8|9)

- decimalFormat [#.##########] ( <java.text.DecimalFormat> )

- removeTrailingZeros [false] (true|false)

 

Attributes

 

minValue: The min allowed value, including the specified value. So that if minValue="0", then 0 would be allowed as one of the values.

 

maxValue: The max allowed value, including the specified value. So that if maxValue="10", then 10 would be allowed as one of the values.

 

minExclusive: The min allowed value, excluding the specified value. So that if minExclusive="0", then 0 would not be allowed as one of the values.

 

maxExclusive: The max allowed value, excluding the specified value. So that if maxExlusive="10", then 10 would not be allowed as one of the values.

 

scale: The number of significant digits to the right of the decimal point.

 

decimalFormat: Allows you to specify your own decimal format.

 

removeTrailingZeros: 

 

    By default decimal numbers will be appended with zeros to their scale. 

    So for example, 1 with a scale of 2 would be 1.00. 

    By setting removeTrailingZeros="true" the number 1.00 becomes 1.

 

The Schema

 

<schema packageScope="com.wickedfastsolutions.demo.domain">    
    <Product>
        <ProductCost type="double" scale="2" maxLength="9">123.45</ProductCost>
    </Product>
</schema>