Analytics Builder 10.14.0 | Using Analytics Builder for Cumulocity IoT | Block Reference | Calculation | From Base N
 
From Base N
apama.analyticsbuilder.blocks.FromBaseN
Converts a base N string to a float.
The input string can be in any integer base from 2 to 36, where letters of the English alphabet are used as digits for bases above 10. Common bases are 2 (binary), 8 (octal), 10 (decimal) and 16 (hexadecimal). The number being converted can contain a radix point.
Conversion between two arbitrary bases can be achieved by chaining this block with the To Base N block.
Parameters
Name
Description
Type
Notes
Input Base
The number base of the input stream, in the range 2 to 36.
integer
Default: 16
Radix Character
The character to use as the radix point. Expected to be a dot or a comma.
Option - one of:
*Dot
*Comma
Default: Dot
Input Port Details
Name
Description
Type
Base N
String input in base N.
string
Output Port Details
Name
Description
Type
Float
Numeric output.
float