Summary: | pi calculation gives errors on its value and pastes extra places | ||
---|---|---|---|
Product: | [Applications] kcalc | Reporter: | david powell <achiestdragon> |
Component: | general | Assignee: | Klaus Niederkrüger <kniederk> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
david powell
2006-11-19 18:33:00 UTC
Interesting. In knumber/knumber.cpp KNumber const KNumber::Pi("3.141592653589793238462643383279502884197169" "39937510582097494459230781640628620899862803" "4825342117068"); Is defined OK (apart from the last digit rounded up. Strange bug? Nick Actually, Euler's number (e) goes wrong as well: Kcalc: 2.7182818284590450907955982984276488423 2.718281828459045235360287471352662497757247093699959574966... e: knumber/knumber.cpp KNumber const KNumber::Euler("2.718281828459045235360287471352662497757" "24709369995957496696762772407663035354759" "4571382178525166427"); The bug seems to be fixed in the svn-code for KDE-3.5.6. Thanks for the report. Klaus |