well all i want to know is the function that allows you to change lets say 6.984924829 to 6... in other words i would like to truncate the number ...
well all i want to know is the function that allows you to change lets say 6.984924829 to 6... in other words i would like to truncate the number ...
you dont need a function if you assign that value to an int, it will lose the decimal part.
or you could use the same variable likeCode:double dnum = 6.984924829 ; int inum; inum = dnum; /* inum has a value of 6 */
Code:double dnum = 6.984924829 ; dnum = (int)dnum; /* dnum now has a value of 6.0 */
All spelling mistakes, syntatical errors and stupid comments are intentional.