"ढाँचा:Precision" का संशोधनहरू बिचको अन्तर

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>{{precisiongetprecision| -1522.12345}}</nowiki> &rarr; {{precisiongetprecision| -1522.12345}}
:* <nowiki>{{getprecision| -1522.12312345}}</nowiki> &rarr; {{getprecision| -1522.12312345}}
:* <nowiki>{{getprecision| -15.2500275}}</nowiki> &rarr; {{getprecision| -15.2500275}}
:* <nowiki>{{Getprecision getprecision|23000222000111 -15.4322500}}</nowiki> &rarr; {{Getprecision getprecision|23000222000111 -15.4322500}}
:* <nowiki>{{Getprecision |23000222000111.432}}</nowiki> &rarr; {{Getprecision |23000222000111.432}}
 
:* <nowiki>{{getprecision| -15.123}}</nowiki> &rarr; {{getprecision| -15.123}}
==See also==
:: <nowiki>{{precision| -15.123}}</nowiki> &rarr; {{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> &rarr; {{getprecision|7.1234E+06}} (should be precision as 4 decimal digits, not 3).
 
===See also===
* [[Template:Precision]] - get precision of positive numbers
 
"https://ne.wikipedia.org/wiki/ढाँचा:Precision" बाट अनुप्रेषित