spartanatreyu, 1 month ago Presenting: an excerpt from my lua windows management script: <span style="font-style:italic;color:#969896;">-- Exists because lua doesn't have a round function. WAT?! </span><span style="font-weight:bold;color:#a71d5d;">function </span><span style="font-weight:bold;color:#795da3;">round</span><span style="color:#323232;">(num) </span><span style="color:#323232;"> </span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#62a35c;">math.floor</span><span style="color:#323232;">(num </span><span style="font-weight:bold;color:#a71d5d;">+ </span><span style="color:#0086b3;">0.5</span><span style="color:#323232;">) </span><span style="font-weight:bold;color:#a71d5d;">end </span> Yeah, not a fan.
Presenting: an excerpt from my lua windows management script:
<span style="font-style:italic;color:#969896;">-- Exists because lua doesn't have a round function. WAT?! </span><span style="font-weight:bold;color:#a71d5d;">function </span><span style="font-weight:bold;color:#795da3;">round</span><span style="color:#323232;">(num) </span><span style="color:#323232;"> </span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#62a35c;">math.floor</span><span style="color:#323232;">(num </span><span style="font-weight:bold;color:#a71d5d;">+ </span><span style="color:#0086b3;">0.5</span><span style="color:#323232;">) </span><span style="font-weight:bold;color:#a71d5d;">end </span>
Yeah, not a fan.