|
|
back to boardconversion float to int When I solved this problem then understood that I don't know how humanly round down float to int in C++, because int(double) round down positive numbers but round up negative. Now I use int(x+1000000000)-1000000000, but it is bad. Any ideas ... Re: conversion float to int Posted by it4.kp 23 Jul 2006 05:40 why don't you use floor() function? Re: conversion float to int Good idea. It is possible to use int(floor()). Nowhere could find proper function. Thnks. |
|
|