This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
38
Wiki
Activity
Browse Source
Fix broken eucMod()
tags/v1.0.0
Andrew Belt
5 years ago
parent
997b67f5aa
commit
71fab3da71
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
include/math.hpp
+ 1
- 1
include/math.hpp
View File
@@ -120,7 +120,7 @@ inline float normalizeZero(float x) {
See https://en.wikipedia.org/wiki/Euclidean_division.
*/
inline float eucMod(float a, float b) {
in
t mod = std::fmod(a, b);
floa
t mod = std::fmod(a, b);
if (mod < 0.f) {
mod += b;
}
Write
Preview
Loading…
Cancel
Save