Analytics Builder 10.10.0 | Using Analytics Builder for Cumulocity IoT | Block Reference | Calculation | To Base N
 
To Base N
apama.analyticsbuilder.blocks.ToBaseN
Converts a float to a base N string.
The output 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. The output is calculated to a maximum precision of 16 radix places.
Conversion between two arbitrary bases can be achieved by chaining this block with the From Base N block.
Parameters
Name
Description
Type
Notes
Output Base
The number base of the output 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
Float
Numeric input.
float
Output Port Details
Name
Description
Type
Base N
String output in base N.
string