|
From: | Mike Miller |
Subject: | [Octave-bug-tracker] [bug #33168] abs function in octave c++ API converting standard C++ type to int |
Date: | Thu, 05 Sep 2013 01:37:09 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36 |
Update of bug #33168 (project octave): Status: Confirmed => Invalid Open/Closed: Open => Closed _______________________________________________________ Follow-up Comment #2: This is not an Octave bug, this is simply confusion about C versus C++ functions. The plain abs function is from the C math library and is defined as "int abs(int)". To get a double-precision absolute value, use either std::abs as you have shown below or use the C fabs function. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?33168> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |