Skip to main content
16 events
when toggle format what by license comment
Jan 6, 2018 at 1:46 history edited Jamal CC BY-SA 3.0
deleted 77 characters in body; edited tags
Sep 8, 2016 at 14:33 comment added Ped7g It's sort of funny how many answers you got, while the fundamental problem remains, your code does not do, what you think it does. :)
Sep 8, 2016 at 14:30 answer added Ped7g timeline score: 2
Sep 8, 2016 at 4:56 vote accept Elmi
Sep 7, 2016 at 18:22 answer added Jerry Coffin timeline score: 0
Sep 7, 2016 at 16:20 comment added Loki Astari You lost me at Macro. There is no reason to use such arcane tricks in modern C++ there are much better techniques (called functions). Are there better yes just looks a <cmath> for rounding functions trunc() ceil() floor() round(). All the difference specializations for rounding are already provided and implemented in the fastest way for your specific platform. All you would need to do is add the bit to cope with the number of digits.
Sep 7, 2016 at 13:47 comment added user34867 Rounding by adding/subtracting 0.5 is incorrect. It does not produce correct results for a large number of floats.
Sep 7, 2016 at 13:17 history edited 200_success CC BY-SA 3.0
deleted 11 characters in body; edited tags; edited title
Sep 7, 2016 at 12:50 answer added ChatterOne timeline score: 2
Sep 7, 2016 at 12:32 answer added pacmaninbw timeline score: 1
Sep 7, 2016 at 12:28 comment added Elmi Sorry, I added it!
Sep 7, 2016 at 12:27 history edited Elmi CC BY-SA 3.0
added missing define SIGN
Sep 7, 2016 at 12:24 comment added Martin R What is CNCO_SIGN? My compiler (Clang) does not know that.
Sep 7, 2016 at 12:09 history edited Elmi
edited tags
Sep 7, 2016 at 11:45 review First posts
Sep 7, 2016 at 12:02
Sep 7, 2016 at 11:43 history asked Elmi CC BY-SA 3.0