asDecimal
asDecimal(): Decimal;
The asDecimal method of the Binary primitive type returns the decimal value for a Binary value that was obtained by a call to the asBinary method of the Decimal primitive type.
The following example shows the use of the asDecimal method.
vars bin : Binary; dec : Decimal; begin dec := 123.456.Decimal; bin := dec.asBinary; write bin.asDecimal; // Outputs 123.456 end;
Use the asDecimal method in preference to type casting; for example:
bin := dec.asBinary; // This is preferable to "bin := dec.Binary;"