org.hisrc.jsonix.Jsonix.Schema.XSD.Float.js Maven / Gradle / Ivy
Jsonix.Schema.XSD.Float = Jsonix.Class(Jsonix.Schema.XSD.Number, {
name : 'Float',
typeName : Jsonix.Schema.XSD.qname('float'),
isInstance : function(value, context, scope) {
return Jsonix.Util.Type.isNaN(value) || value === -Infinity || value === Infinity || (Jsonix.Util.Type.isNumber(value) && value >= this.MIN_VALUE && value <= this.MAX_VALUE);
},
MIN_VALUE : -3.4028235e+38,
MAX_VALUE : 3.4028235e+38,
CLASS_NAME : 'Jsonix.Schema.XSD.Float'
});
Jsonix.Schema.XSD.Float.INSTANCE = new Jsonix.Schema.XSD.Float();
Jsonix.Schema.XSD.Float.INSTANCE.LIST = new Jsonix.Schema.XSD.List(Jsonix.Schema.XSD.Float.INSTANCE);
© 2015 - 2024 Weber Informatics LLC | Privacy Policy