Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calc expressions do not work for UInt64 #77

Open
lostmsu opened this issue Aug 31, 2021 · 1 comment
Open

Calc expressions do not work for UInt64 #77

lostmsu opened this issue Aug 31, 2021 · 1 comment

Comments

@lostmsu
Copy link

lostmsu commented Aug 31, 2021

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 lostmsu changed the title Calc expressions do not appear to work for UInt64 Calc expressions do not work for UInt64 Aug 31, 2021
lostmsu added a commit to lostmsu/Stack.NVidia that referenced this issue Aug 31, 2021
@netwww1
Copy link

netwww1 commented Sep 15, 2023

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants