Quote from: daydreamer2 on January 04, 2014, 03:57:30 AMi need to set fp flags right to get integer part?yes, you need to set the rounding mode. The default value (FINIT) is "round to nearest". There is also the SSE3 instruction FISTTP, which always truncates (ignores the current rounding mode). Furthermore, using cvttsd2si or cvttss2si (SSE2) might be also an option.