//use math.hint main () { double p, fractpart, intpart; p = 3.14159265; fractpart = modf (p , &intpart); printf ("%lf = %lf + %lf \n", p, intpart, fractpart); return 0; } //use math.hint main () { double p, fractpart, intpart; p = 3.14159265; fractpart = modf (p , &intpart); printf ("%lf = %lf + %lf \n", p, intpart, fractpart); return 0; } Subscribe to our newsletter to get the latest updates to your inbox. ;-)
Your email address is safe with us!
Copyright 2014 © Tech Solutions । All rights Reserved
Template Designed By Template Trackers and Provided By Blogger Maruf
0 comments for "Split floating-point value into fractional and integer parts"
Post a Comment