Skip to content

Commit

Permalink
Fixed a stupid oversight.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhoux committed Dec 27, 2023
1 parent 0fcec0f commit 7e9a6ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cinder/CinderMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ CI_API inline float roundToZero( float n, float epsilon = float(EPSILON) )
return n;
}

CI_API inline float roundToZero( double n, double epsilon = EPSILON )
CI_API inline double roundToZero( double n, double epsilon = EPSILON )
{
if( std::abs( n ) < epsilon )
return 0.0f;
return 0.0;
return n;
}

Expand Down

0 comments on commit 7e9a6ec

Please sign in to comment.