Expression Language
Also available as:
PDF

fromRadix

Description: [.description]#Converts the Subject from a specified Radix (or number base) to a base ten whole number. The subject will converted as is, without interpretation, and all characters must be valid for the base being converted from. For example converting "0xFF" from hex will not work due to "x" being a invalid hex character.

If a decimal is passed as the subject, it will first be converted to a whole number and then processed.#

Subject Type: String

Arguments:

  • Subject Base : A Number between 2 and 36 (inclusive)

Return Type: Number

Examples: If the "fileSize" attributes has a value of 1234A, then the following Expressions will yield the following results:

Table 1.17. Table 17. toRadix Examples

Expression

Value

${fileSize:fromRadix(11)}

17720

${fileSize:fromRadix(16)}

74570

${fileSize:fromRadix(20)}

177290