complexType "Rounding"
Namespace:
Content:
complex, 2 elements
Defined:
Includes:
definitions of 2 elements
Used:
Content Model Diagram
XML Representation Summary
<...>
   
Content: 
</...>
Content Model Elements (2):
precision (defined in Rounding complexType),
All Direct / Indirect Based Elements (4):
rounding (defined in CommodityContent.model group),
rounding (defined in FloatingLegCalculation complexType),
rounding (defined in WeatherLegCalculation complexType)
Known Usage Locations
Annotation
A type defining a rounding direction and precision to be used in the rounding of a rate.
XML Source (w/o annotations (3); see within schema source)
<xsd:complexType name="Rounding">
<xsd:sequence>
<xsd:element name="roundingDirection" type="RoundingDirectionEnum"/>
<xsd:element name="precision" type="xsd:nonNegativeInteger"/>
</xsd:sequence>
</xsd:complexType>
Content Element Detail (all declarations; defined within this component only; 2/2)
precision
Type:
xsd:nonNegativeInteger, predefined, simple content
Specifies the rounding precision in terms of a number of decimal places. Note how a percentage rate rounding of 5 decimal places is expressed as a rounding precision of 7 in the FpML document since the percentage is expressed as a decimal, e.g. 9.876543% (or 0.09876543) being rounded to the nearest 5 decimal places is 9.87654% (or 0.0987654).
XML Source (w/o annotations (1); see within schema source)
<xsd:element name="precision" type="xsd:nonNegativeInteger"/>

roundingDirection
Type:
RoundingDirectionEnum, simple content
Specifies the rounding direction.
Simple Content
enumeration of xsd:token
Enumeration:
"Up"
 - 
A fractional number will be rounded up to the specified number of decimal places (the precision). For example, 5.21 and 5.25 rounded up to 1 decimal place are 5.3 and 5.3 respectively.
"Down"
 - 
A fractional number will be rounded down to the specified number of decimal places (the precision). For example, 5.29 and 5.25 rounded down to 1 decimal place are 5.2 and 5.2 respectively.
"Nearest"
 - 
A fractional number will be rounded either up or down to the specified number of decimal places (the precision) depending on its value. For example, 5.24 would be rounded down to 5.2 and 5.25 would be rounded up to 5.3 if a precision of 1 decimal place were specified.
minLength:
0
XML Source (w/o annotations (1); see within schema source)
<xsd:element name="roundingDirection" type="RoundingDirectionEnum"/>

XML schema documentation generated with DocFlex/XML 1.9.0 using DocFlex/XML XSDDoc 2.8.0 template set. All content model diagrams generated by Altova XMLSpy via DocFlex/XML XMLSpy Integration.