Below is sample example for the function num2str
static void dtformatNum(Args _args)
{
real lineNum = 5.69;
int d = 0;
;
while ((d < 10) && (lineNum != str2num( num2str(lineNum,1,d,1,0) ) ))
d++;
info(num2str(lineNum, 1, d, 1, 0));
}
static void dtformatNum(Args _args)
{
real lineNum = 5.69;
int d = 0;
;
while ((d < 10) && (lineNum != str2num( num2str(lineNum,1,d,1,0) ) ))
d++;
info(num2str(lineNum, 1, d, 1, 0));
}
No comments:
Post a Comment