Creating numeric types
No edit summary
No edit summary
Line 3: Line 3:
Instead, use:
Instead, use:
  Decimal.create(<number>)
  Decimal.create(<number>)
For example, Decimal.Create(100) will create a Decimal value of 100.
For example, <code>Decimal.Create(100)</code> will create a Decimal value of 100.


You can also pass many other value types to Decimal.create() for type casting.
You can also pass many other value types to <code>Decimal.create()</code> for type casting.
[[Category:OCL]]
[[Category:OCL]]

Revision as of 08:21, 15 June 2023

You can't express certain types as text - for example, a decimal - in EAL.

Instead, use:

Decimal.create(<number>)

For example, Decimal.Create(100) will create a Decimal value of 100.

You can also pass many other value types to Decimal.create() for type casting.

This page was edited 98 days ago on 02/10/2024. What links here