Hi,
//To round off all digit after decimal.
static void roundOff(Args _args)
{
real numb;
;
numb = trunc(4.68989);
print strfmt("Round off number= %1", numb);
pause;
}
Out put
Round off number= 4.00
Regards,
//To round off all digit after decimal.
static void roundOff(Args _args)
{
real numb;
;
numb = trunc(4.68989);
print strfmt("Round off number= %1", numb);
pause;
}
Out put
Round off number= 4.00
Regards,
No comments:
Post a Comment