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

This page was created by Lars.olofsson@mdriven.net on 2020-06-24. Last edited by Edgar on 2025-01-20.

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.

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments