string RealToStr(real)
Return Type: string
Parameters: real R
Description:
This function converts a real (floating point) number to a string. This
can also be accomplished using the 'string' function and the 'format'
function in the Standard package.
Example
Code |
1 >>real
r = 42.625;
2 >>string s = RealToStr(r);
3 >>disp(r);
42.62500000000000 |
See Also: format