Warcraft 3 documentation
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation
This topic is the discussión abut the function R2S. You can see all the information about this function keyword HERE.

[functions] R2S No New Posts Jassdoc

Started by

0 Members and 1 Guest are viewing this topic.

[functions] R2S
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
« Last Edit: February 27, 2022, 05:35:43 PM by City17 »


Started by moyack

Replies: 3
Views: 4324

Started by Jedi

Replies: 5
Views: 14903
General Jass Discussion

Started by moyack

Replies: 40
Views: 59313
Jass Theory & Questions

Started by moyack

Replies: 0
Views: 697

Started by moyack

Replies: 0
Views: 702
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...