steph1111 / PRECISE

Precision Rules Enforced Calculations In Scientific Environments
Other
0 stars 0 forks source link

sig_float: Overline significant digit #27

Closed steph1111 closed 1 year ago

steph1111 commented 1 year ago

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

steph1111 commented 1 year ago

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 commented 1 year ago

Overlining causing issues, reassess functionality

steph1111 commented 1 year ago

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

schrodinstein commented 1 year ago

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

steph1111 commented 1 year ago

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