I.e. UInt64 / 12
I.e. Int64 * 12
etc..
Code: Select all
⎕using←'System' 'Dyalog'
val←Convert.ToUInt64⊂ '23424234'
val
23424234
The interpreter does not extend the primitives to these larger values like Int32 and Floats.
As you see I get a DOMAIN ERROR.
Code: Select all
val÷12
DOMAIN ERROR
val÷12
∧
Converting the number to text and executing it is one dirty workaround.
Code: Select all
(1⊃⎕vfi val.ToString ⍬)÷12
1952019.5
(⍎ val.ToString ⍬)÷12
1952019.5
Using a class that contains Divide is one option
Code: Select all
Decimal.Divide val 12
1952019.5
but is that the best way?
Norbert