Search found 2 matches

by dengdeyan
Fri Aug 29, 2008 5:19 am
Forum: wxWidgets Development (Chinese)
Topic: 对wx论坛的中文版块的展望
Replies: 16
Views: 49496

by dengdeyan
Mon Aug 13, 2007 3:44 pm
Forum: C++ Development
Topic: Problem with integer and double in C++
Replies: 5
Views: 767

you may define your own macro

double to long ,there absolutely is accuracy lose.
you may define a macro like this:

#define dtol(f) (f>0)?long(f+0.5):long(f-0.5)