Jass documentation Database

JASS Documentation Database REFORGED


Results for the query "R2S" as a "function"

The search keyword must be a single word (no spaces).

Function R2S

Line: 2228
Location: common.j
Constant? no
Type: native
Arguments: real r
Returns: string

Preview

Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. native R2S takes real r returns string

Information about R2S

Information contributed by City17
on February 25, 2022, 01:53:18 PM.
returns a string representation for real r with precision of 3 digits. The real is correctly rounded to nearest to fit within the precision. Raises an error if r is null.

Example: R2S(1.12) // 1.120
Equivalent to: R2SW(r, 0, 3) and Lua: string.format("%.3f", r)

See: R2SW
Page loaded in 0.1419 seconds.
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...