VOGONS


First post, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

I have

#include <cmath>
#include <limits>

using namespace std;

But yet still

Attachments

  • Filename
    dosbox lround and max.png
    File size
    309.83 KiB
    Downloads
    49 downloads
    File license
    Fair use/fair dealing exception

Reply 1 of 7, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

My magic glass bowl says:
Thanks for the info, you need more garlic

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 3 of 7, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

Hello bloodbat,
Now I found 4 similar methods for rounding numbers in Visual C++ standard library.

1) round_indeterminate
2) round_toward_infinity
3) round_toward_neg_infinity
4) round_toward_zero
5) rount_to_nearest

Should I replace it with 5) ?

Whoops, my mistake, they ain't methods, they are enums

Thanks
Jack