conv:floatToInt

Converts an XSD float string value to an XSD int string value.

Namespace declaration

  • XSLT
    xmlns:conv="xalan://com.ibm.wbiserver.transform.util.MapUtils"
  • XQuery
    declare namespace conv="xalan://com.ibm.wbiserver.transform.util.MapUtils";

Syntax

conv:floatToInt(val, defaultValue)

Parameters

val
Specifies the float string value to convert.
defaultValue
Specifies a default int string value.

Guidelines

The conv:floatToInt function returns the default value under either of the following conditions.
  • The incoming string is an invalid XSD float string value.
  • The float string value cannot be converted to an int string value.

Results

Returns the converted value.