Class Reference
IRIS for UNIX 2019.3
InterSystems: The power behind what matters   
Documentation  Search
  [ENSLIB] >  [%xsd] >  [float]
Private  Storage   

datatype class %xsd.float extends %Float

ODBC Type: VARCHAR

This data type represents a floating point number. Internally, it is stored as a floating point value.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 2


Summary

Methods
DisplayToLogical IsValid LogicalToDisplay LogicalToJSON
Normalize XSDToLogical

Subclasses
%xsd.double

Parameters

• parameter JSONTYPE = "double";
• parameter XSDTYPE = "float";
Declares the XSD type used when projecting XML schemas.

Methods

• classmethod IsValid(%val As %RawString) as %Status
Tests if the logical value %val, which is a floating point value, is valid. The validation is based on the class parameter settings used for the class attribute this data type is associated with. In this case, MAXVAL and MINVAL.
• classmethod XSDToLogical(%val As %String) as %Float
Converts the SOAP encoded input decimal value into a logical value. Also supports the XML values of -0, INF, -INF and NaN which are stored as strings. Returns "" for error.


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.