every time i make my own rounding routine with precision, i see my compiler suggesting a function long double round(long double x, int precision); so i was wondering if someone knows what library it comes from, i surely wasn't able to find it... thanks
gregorynoob
2
Junior Poster in Training
Recommended Answers
Jump to PostIf you're using a C-compiler, it might come from <math.h>. I'm not sure of this, but I vaguely remember that there's a round() function in there somewhere.
To my knowledge, there is no round()-function in C++, but I could very well be corrected in the next few replies.
All 4 Replies
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
gregorynoob
2
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
ArkM
1,090
Postaholic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.