View Single Post
Old 06-17-2019, 03:28 AM   #491
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 5,523
Default

Quote:
Originally Posted by danerius View Post
Hi + massor med tack Both actually. But theyre kind of separate questions

I understand the 'slider1 divided by 100'. But is it adding .0999 to the result? Multiplying?

/thx
Code:
min(x, y)
returns the smallest value of x and y.

So in the particular case of
Code:
min(slider1/100, 0.999)
when slider1 is 100, 0.999 will be returned, not 1. This is to not get a divide by zero on the next line
Code:
foo = 2*hdistr/(1-hdistr);
as hdistr is guaranteed to never be exactly 1.
__________________
// MVHMF
I never always did the right thing, but all I did wasn't wrong...
Fabian is offline   Reply With Quote