Skip to content

ProtoString toDecimal() Method

Seth Clydesdale edited this page May 23, 2015 · 5 revisions

<< Back to Conversion Methods

Example

Encoding each character in a text string as its Decimal counterpart.

'Hello'.toDecimal(); // returns '72 101 108 108 111'

Description

The toDecimal() method was used to encode all characters in a string as its Decimal counterpart. This method was dropped, so it's recommended to use encodeAs() instead.

Syntax

String.toDecimal();

Information

You can find the source for the old conversion methods here.

Clone this wiki locally