Previous Document Next Document
CorelScriptTools.Dec

Function Dec(Hex As String) As Long

Member of CorelScriptTools

The Dec method returns the conversion of a hexadecimal value into decimal notation.

Parameters
Description
Hex
Represents a hexadecimal number

  • Decimal notation is a numerical system based on groups of ten units.
  • The highest value you can convert is 7FFFFFFF.
  • The Dec method performs the opposite conversion, from decimal to hexadecimal.

In the following code example, x equals 2599:

x& = DEC("A27") 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.