-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
doubles and various (un)signed integer lengths #708
Comments
Hello, |
I was thinking about |
Print your number into a string, call InputText, when it return true scanf back from string to number. Literally 4 lines of code. Look up how those functions work. |
My problem is to avoid the additional string handling, because (1st) an extra variable is necessary to keep the string state and (2nd) the imgui API doesn't support |
|
I'm a bit confused: |
Sorry I meant InputText, was a typo.. |
Ok. Once I need more then plain keyboard input (like +/- buttons), I'd need to workaround-build this, too.. right? |
Yes. But for integer than that are smaller than int you can also just copy your value into an int and call any Int function. |
True, but the overflow/underflow won't be handled correctly. I'd prefer an imgui-internal solution ;-) |
Well I'd prefer a full-time job working on ImGui! What overflow? |
Ok thx :) |
FYI, I have added functions in a branch to work with float, double, 32/64 bits, signed and unsigned (and in a proper lossless manner, as previously some functions didn't work great with big integers). |
Hi, is there any support planned for doubles or various (un)signed integer lengths?
The text was updated successfully, but these errors were encountered: