Format:Rotunjire-minus

De la Wikipedia, enciclopedia liberă


Documentație
Documentație format
Această documentație este adusă de la pagina Format:Rotunjire-minus/doc.

This template rounds down a numeric value to a limited number of decimal places.

Usage

  • {{Rotunjire-minus|value}}
  • {{Rotunjire-minus|value|decimals}}
  • Both parameters can be any valid numeric expression; however, decimals should be an integer.
  • The decimals parameter defaults to 0.
  • decimals can be negative to round down to a multiple of a power of ten.
  • NAN may be returned if very large values are used.

Examples

Template Result Expected
{{Rotunjire-minus|3.14159|3}} 3.141 3.141
{{Rotunjire-minus|0.123|3}} 0.123 0.123
{{Rotunjire-minus|0.00032|3}} 0 0
{{Rotunjire-minus|-0.123|3}} -0.123 -0.123
{{Rotunjire-minus|-3.14159|3}} -3.142 -3.142
{{Rotunjire-minus|0.31415|0}} 0 0
{{Rotunjire-minus|0|0}} 0 0
{{Rotunjire-minus|-0.31415|0}} -1 -1
{{Rotunjire-minus|314159|-3}} 314000 314000
{{Rotunjire-minus|314.15|-3}} 0 0
{{Rotunjire-minus|-314159|-3}} -315000 -315000
{{Rotunjire-minus|.875}} 0 0

Note

  • You should use the parserfunction {{#expr:floor value}} rather than {{Rotunjire-minus|value}} or {{Rotunjire-minus|value|0}}. This template should only be used when rounding down to some number of decimal places other than zero.

Vezi și
https://ro.wikipedia.org/wiki/Format:Rotunjire-minus
ro.wikipedia.org
CC-MAIN-2023-40
62041
application/http; msgtype=response
sha1:2VBMJP5WCK42KI7KBX3ERW5CGVFEOUCO
<urn:uuid:e8256140-52f9-4520-9094-1292d7b2e4a8>
2023-10-02T19:37:42Z
208.80.154.224
text/html
sha1:A6EZUTXLLZ3Y5UW2F77L2BRMLYNL2464
<urn:uuid:78372a1f-72a5-472e-971e-908db97ae52f>
https://ro.wikipedia.org/wiki/Format:Rotunjire-minus
response
<urn:uuid:429109ca-7eb4-4194-a76a-03d7ebd478b1>
isPartOf: CC-MAIN-2023-40
publisher: Common Crawl
description: Wide crawl of the web for September/October 2023
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-129
software: Apache Nutch 1.19 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.5-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/