Difference between revisions of "Dtostring"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == The dtostring(d, a) function will convert the variable or value ''d'' into a string using the formatting supplied in ''a''. * '''Pass:''' A Double and [[Stri…')
 
m
Line 11: Line 11:
 
  var a:=23.4352;
 
  var a:=23.4352;
 
  var c:=dtostring(a, "%.2f");
 
  var c:=dtostring(a, "%.2f");
 +
 +
''Since: Version 1.0''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:String Functions]]
 
[[Category:String Functions]]

Revision as of 18:31, 13 January 2013

Overview

The dtostring(d, a) function will convert the variable or value d into a string using the formatting supplied in a.

Example

#include <string>
var a:=23.4352;
var c:=dtostring(a, "%.2f");

Since: Version 1.0