"ढाँचा:Precision" का संशोधनहरू बिचको अन्तर
Content deleted Content added
created, as utility template, to get precision of any number, large or negative, using a fast algorithm |
more examples; added section "Known bugs" |
||
पङ्क्ति ३१:
===Examples===
Some examples:
:* <nowiki>{{
:* <nowiki>{{getprecision|
:* <nowiki>{{getprecision| -15.
:* <nowiki>{{
:* <nowiki>{{Getprecision |23000222000111.432}}</nowiki> → {{Getprecision |23000222000111.432}}
:* <nowiki>{{getprecision| -15.123}}</nowiki> → {{getprecision| -15.123}}
==See also==▼
:: <nowiki>{{precision| -15.123}}</nowiki> → {{precision| -15.123}} [ Getprecision handles negatives, but not {precision} ]
===Known bugs===
* For numbers in scientific notation, the precision is typically returned as too low by 1 decimal place. Example: <nowiki>{{getprecision |7.1234E+06}}</nowiki> → {{getprecision|7.1234E+06}} (should be precision as 4 decimal digits, not 3).
▲===See also===
* [[Template:Precision]] - get precision of positive numbers
|