| Current Path : /home/rtorresani/www/vendor/magento/framework/Setup/Declaration/Schema/etc/types/real/ |
| Current File : //home/rtorresani/www/vendor/magento/framework/Setup/Declaration/Schema/etc/types/real/float.xsd |
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:include schemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/types/column.xsd"/>
<xs:complexType name="float">
<xs:complexContent>
<xs:extension base="abstractColumnType">
<xs:annotation>
<xs:documentation>
A floating point binary value with single precision. Has rounding issues.
Float is good for scientific calculations.
For business oriented math like price or qty storages please use decimal type.
</xs:documentation>
</xs:annotation>
<xs:attribute name="default" type="xs:float" />
<!--Note that scale must not be more than precision-->
<xs:attribute name="precision">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0" />
<xs:maxInclusive value="255" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="scale">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0" />
<xs:maxInclusive value="253" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="nullable" type="xs:boolean" />
<xs:attribute name="unsigned" type="xs:boolean" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>