CalcBinding icon indicating copy to clipboard operation
CalcBinding copied to clipboard

Calc expressions do not work for `UInt64`

Open lostmsu opened this issue 4 years ago • 1 comments

This outputs raw value in bytes: {calc:Binding MemoryUsage.UsedBytes, Mode=OneWay}

However, this just outputs empty string (should output kilobytes): {calc:Binding MemoryUsage.UsedBytes/1024, Mode=OneWay}

UsedBytes if of type UInt64.

lostmsu avatar Aug 31 '21 19:08 lostmsu

DynamicExpresso.Interpreter used by CalcBinding to process expression has not implemented implicit convertion between ulong and int and CalcBinding doesn't support explicit convertion. To make your code working , just add 'UL' suffix to the constant: {calc:Binding MemoryUsage.UsedBytes/1024UL, Mode=OneWay}

netwww1 avatar Sep 15 '23 08:09 netwww1