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

Userfriendly numbers #635

Closed
wstaelens opened this Issue Oct 2, 2018 · 11 comments

Comments

4 participants
@wstaelens
Copy link
Contributor

wstaelens commented Oct 2, 2018

Synfig version & platform:
Synfig 1.2.2 - Windows 10 x64 Pro v1803 (build 17134.285)

Issue description:

synfig numbers

as you can see in the image a value like -2.027e-006px is very very annoying to use...

@morevnaproject

This comment has been minimized.

Copy link
Member

morevnaproject commented Oct 9, 2018

Sample file attached - e-bug.sifz.zip

screenshot_001

@subhani92 subhani92 referenced this issue Oct 9, 2018

Merged

Add more tests #5

@subhani92

This comment has been minimized.

Copy link

subhani92 commented Oct 9, 2018

value like -2.027e-006px is very very annoying to use

what do you expect in place of this?

@wstaelens

This comment has been minimized.

Copy link
Contributor Author

wstaelens commented Oct 10, 2018

@subhani92 something like -2.02, just "normal" float or double numbers, no scientific 'e' formatted numbers. You don't see this in Blender either.

@morevnaproject

This comment has been minimized.

Copy link
Member

morevnaproject commented Oct 10, 2018

If I understand correctly, "-2.027e-006" stands for "−2,027×e^(−6)":

screenshot_001

@genete

This comment has been minimized.

Copy link
Member

genete commented Oct 10, 2018

@wstaelens

This comment has been minimized.

Copy link
Contributor Author

wstaelens commented Oct 11, 2018

yeah, i'm not calculating at this moment ☕️
just wanted to say that users are not used to enter scientific notations, we just use floats/doubles. 😄

@morevnaproject

This comment has been minimized.

Copy link
Member

morevnaproject commented Oct 26, 2018

@subhani92 Any progress on this? ^__^

@subhani92

This comment has been minimized.

Copy link

subhani92 commented Oct 26, 2018

Any progress on this? ^__^

first of all sorry for late reply!
I was little busy of my college's internals and campus placement interviews. Thats's why I paused working on it, hopefully I'll resume working from tomorrow. One more thing can you please give me a hint that in which directory the source code can be find out for this bug.
Thank you ! ^__^

@morevnaproject

This comment has been minimized.

Copy link
Member

morevnaproject commented Oct 30, 2018

@ghost

This comment has been minimized.

Copy link

ghost commented Dec 5, 2018

@subhani92 I don't know if you still had plans on working on it, but I've created a PR for it. It was a simple fix.

@wstaelens

This comment has been minimized.

Copy link
Contributor Author

wstaelens commented Dec 5, 2018

Great!
You can find more info about the formatters used in the fix on http://www.cplusplus.com/reference/cstdio/printf/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.