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

sig_float: Overline significant digit #27

Closed
steph1111 opened this issue Apr 30, 2023 · 5 comments
Closed

sig_float: Overline significant digit #27

steph1111 opened this issue Apr 30, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@steph1111
Copy link
Owner

Reassigning the internal string with the number that has the overlined zero, unsure if this is gonna contribute to problems

@steph1111 steph1111 added the potential issue Something which may or may not be a problem label Apr 30, 2023
@steph1111 steph1111 moved this to Todo in sig_float Apr 30, 2023
@steph1111 steph1111 added the question Further information is requested label Apr 30, 2023
@steph1111
Copy link
Owner Author

As cisco how this should work

num1 = sig_float("55")
num2 = sig_float("55")
num3 = sig_float("1.0")
num4 = sig_float("1.0")
print(RED + f"3) {num1} * {num2} * {num3} + {num4} = {num1 * num2 * num3 + num4}" + GREEN) # Should be overlined
12) 55  * 55  * 1.0  + 1.0  = 3000 

@steph1111 steph1111 added ask cisco Question for cisco bug Something isn't working and removed question Further information is requested ask cisco Question for cisco potential issue Something which may or may not be a problem labels Apr 30, 2023
@steph1111
Copy link
Owner Author

Overlining causing issues, reassess functionality

@steph1111 steph1111 changed the title sig_float: Make sure overlinining works with mixed operations sig_float: Overline significant digit May 26, 2023
@steph1111
Copy link
Owner Author

May want to implicate this in a latex format rather than ascii??
0.00\bar{0}8723

@steph1111 steph1111 moved this from Todo to In Progress in sig_float May 26, 2023
steph1111 added a commit that referenced this issue May 26, 2023
@schrodinstein
Copy link
Collaborator

Yes, probably best to format it in Latex. Unicode can get spicy.

@steph1111
Copy link
Owner Author

At the moment I have it working both ways, in which internally its store as an overlined zero in unicode but in the latex() function it is replaced with the latex equivalent. Seems to be working well. Only issue is I am still having trouble implicating it for addition and subtraction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants