0 Nemoticchigga 9 Years Ago How would one seperate a decimal into 2 numbers, the left and right sides of the decimal? float example = 131.14567 into... int left = 131 float right = .14567 thanks. c++

0 Nick Evan 4,005 9 Years Ago One option is something like: float in = 131.14567f; int left = (int)in; float right = left - in;

0 raul15791 27 9 Years Ago Or may be convert the double into string. Then split the string using "." as the delimiter??