Howto - stop KCalc turning long num into e+ format
I entered the value 2415020.3135 into KCalc and hit enter and it became 2.41502e+06. How do I prevent this? It is very irritating not to see all the digits I entered. I need to know what I am working with, no? Please tell me how I can stop this irritating behaviour of KCalc's. I tried changing the maximum number of digits and decimal digits in KCalc settings to no avail. Using KCalc 2.0 on KDE 3.5 on SUSE 10.0. Thank you. -- Penguin #395953 resides at http://samvit.org subsisting on SUSE Linux 10.0 with KDE 3.5
On Friday 16 December 2005 23:33, Shriramana Sharma wrote:
I entered the value 2415020.3135 into KCalc and hit enter and it became 2.41502e+06. How do I prevent this? It is very irritating not to see all the digits I entered. I need to know what I am working with, no?
Please tell me how I can stop this irritating behaviour of KCalc's. I tried changing the maximum number of digits and decimal digits in KCalc settings to no avail.
Using KCalc 2.0 on KDE 3.5 on SUSE 10.0.
Thank you.
Hi SS, The number you've entered hasn't been modified at all. KCalc is just converting it to exponential notation and displaying, as a convenience, only the 'significant' digits (in this case, the integers.) You can prevent this by going to 'Settings'-Configure KCalc and checking the "Set decimal precision" box. While you're there, you can also set the number of decimal places you'd like it to display. regards, - Carl
Saturday, 17 December 2005 10:52 samaye, Carl Hartung alekhiit:
tried changing the maximum number of digits and decimal digits in KCalc settings to no avail.
You can prevent this by going to 'Settings'-Configure KCalc and checking the "Set decimal precision" box. While you're there, you can also set the number of decimal places you'd like it to display.
Thanks Carl, for writing, but as you can see above, I have tried this, but don't get any result even with 10 decimal digits. Please enter the same value on your system's KCalc (please inform the versions) and report as to what happens. Thank you. -- Penguin #395953 resides at http://samvit.org subsisting on SUSE Linux 10.0 with KDE 3.5
On Saturday 17 December 2005 01:25, Shriramana Sharma wrote:
Saturday, 17 December 2005 10:52 samaye, Carl Hartung alekhiit:
tried changing the maximum number of digits and decimal digits in KCalc settings to no avail.
You can prevent this by going to 'Settings'-Configure KCalc and checking the "Set decimal precision" box. While you're there, you can also set the number of decimal places you'd like it to display.
Thanks Carl, for writing, but as you can see above, I have tried this, but don't get any result even with 10 decimal digits. Please enter the same value on your system's KCalc (please inform the versions) and report as to what happens.
Sorry to but in, but in KCalc 1.6 using KDE 3.3.0 in Suse 9.2 the digits 2415020.3135 do not covert to scientific notation and remain in the same format when I add or subtract numbers from it. It must be something new. Eric
On Saturday 17 December 2005 19:02, eriic1@cox.net wrote:
Sorry to but in, but in KCalc 1.6 using KDE 3.3.0 in Suse 9.2 the digits 2415020.3135 do not covert to scientific notation and remain in the same format when I add or subtract numbers from it. It must be something new.
Hi Eric, Hi SS & List... Good grief! I swear I duplicated your original problem, SS, from your first post. As soon as I checked the 'Set decimal precision' box, the scientific notation conversion stopped. Now... no matter what settings I use, I can't get KCalc to automatically convert any entries into scientific notation. :-/ I don't understand it... sorry! KCalc 1.8.1, KDE 3.4.3 level 'b', SUSE 9.3 Built with 96 bit (long double) precision. regards, - Carl
* Shriramana Sharma <samjnaa@gmail.com> [12-16-05 23:35]:
I entered the value 2415020.3135 into KCalc and hit enter and it became 2.41502e+06. How do I prevent this? It is very irritating not to see all the digits I entered. I need to know what I am working with, no?
Please tell me how I can stop this irritating behaviour of KCalc's. I tried changing the maximum number of digits and decimal digits in KCalc settings to no avail.
configure kcalc set Max digits 14 uncheck Set decimal -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
Patrick, Shriramana, On Saturday 17 December 2005 06:53, Patrick Shanahan wrote:
* Shriramana Sharma <samjnaa@gmail.com> [12-16-05 23:35]:
I entered the value 2415020.3135 into KCalc and hit enter and it became 2.41502e+06. How do I prevent this? It is very irritating not to see all the digits I entered. I need to know what I am working with, no?
Please tell me how I can stop this irritating behaviour of KCalc's. I tried changing the maximum number of digits and decimal digits in KCalc settings to no avail.
configure kcalc set Max digits 14 uncheck Set decimal
It has no effect for me. No combination of settings I've tried yields a display with more than six significant digits (as shown when dividing 1 by three or inserting one of the calculator's transcendental constants). It would bother me if this was the calculator I used, but I use Galculator (<http://galculator.sourceforge.net/>). According to the KCalc handbook: -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==- 4.3. What about Precision? The main factor determining the precision of KCalc is whether your libc and libmath supports the C data type long double. If this is the case, KCalc will detect this at compile time and use it as its fundamental data type to represent numbers. Check KCalc's About dialog (in the Configure dialog box) in order to find out what the fundamental data type for your copy of KCalc is. Unless you have a libc and libmath of exceptionally high quality, you will be able to observe some “interesting” results when trying to execute computations such as: 123.22 - 123.21, 2.01 - 2, 123.88 - 123.87 and similar. However if you think this is bad I ask you to do the same computation on the calculator provided with Windows®. Adjust the Precision in KCalc's Configure dialog so that the above computations work correctly. I recommend a precision of 14 if the fundamental data type for your copy of KCalc is long double, otherwise 8 or 10. Higher precision doesn't necessarily lead to better results. Play with the precision and you will see what I mean. -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==- I wonder what my system's and Shriramana's libmath provides and whether it is different from Patricks? I have not been able to find a separate "libmath" or "mathlib" or any general-purpose library that appears to be specifically math-related: % locate math |egrep '\.s?o$' /opt/gnome/lib/gnumeric/1.6.1/plugins/fn-math/plugin.so /opt/gnome/lib/libgimpmath-2.0.so /opt/kde3/lib/kde3/libkfomathmlexport.so /opt/kde3/lib/kde3/libkfomathmlimport.so /opt/kde3/lib/kde3/math_panelapplet.so /opt/mozilla/lib/components/libucvmath.so /usr/lib/php/extensions/bcmath.so /usr/lib/python2.4/lib-dynload/cmath.so /usr/lib/python2.4/lib-dynload/math.so /usr/lib/python2.4/site-packages/Numeric/umath.so /usr/lib/zsh/4.2.5/zsh/mathfunc.so A similar search in YaST's Software Management module (I'm running SuSE version 10.0) likewise turned up nothing. So presumably the math library functions are part of another library. The KCalc handbook describes how to tell what precision was configured when building it from source, but at the moment I'm not disposed to do this, since as I said I don't use KCalc (I require an RPN calculator).
Patrick Shanahan Registered Linux User #207535
Randall Schulz
participants (5)
-
Carl Hartung
-
eriic1@cox.net
-
Patrick Shanahan
-
Randall R Schulz
-
Shriramana Sharma