company logo

Value :: toNormalizedInteger - Get normalized integer value

The function can be called in order to get integer values with decimal precisions as normalized integer. When defining a an attribute with two decimals (INT(10,2)), referring to the value 1, which is stored internally as 100 (1.00), will result in 1. Using toNormalizedInteger() will return 100, instead.

When no instance is selected in the property or the property instance cannot be converted into an integer value the function throws an exception.

Return value:  Integer value ( int32  )

The value is passed as platform independent 32-bit integer value.

Implementation overview

Implementation details

  1. Get normalized value for current property
    int32 Value  :: toNormalizedInteger (  )

    This function provides an integer value for the current property handle.

  2. to list
  3. Get normalized integer value for passed property
    int32 Value  :: toNormalizedInteger ( odaba::String &vSimplePath )

    The function returns the normalized integer value for the property with the name passed in vSimplePath. When no property exists with the passed name the function throws an exception.

    This is a short form for value(vSimplePath).toNormalizedInteger().

    • vSimplePath - Simple property path

      A simple property path may contain an extent or property name but also a sequence of property names separated by dot. A simple property path must not contain parenthesis or preceding dots.

  4. to list