Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1065

Bugs & Feature Suggestions • Re: [BUG/SUGGESTION] Inverted and negative low and high values in Clamp function

$
0
0
I'll be honest...I have no idea what the issue here.
I know the low and high values in the clamp function are reversed and neither is an actual "good" clamping since the order is invalid, but this is intentional, first to showcase the issue and second because it can be a "real world" scenario.
The order is invalid...or in other words, you aren't using the function correctly. The manual clearly states:
Clamp(x, low, high): Restricts value x to low and high limits.
The low is the second parameter. The high is the third.

Are you suggesting that Rainmeter determine which of those two parameters is lowest and highest, then restrict x based on that?

-Brian

Statistics: Posted by Brian — Today, 5:36 pm



Viewing all articles
Browse latest Browse all 1065

Trending Articles