I have an X value that can go from 0.0000001 to infinite.
I want, if this value is less than 0.8, get 0.8
And if that value is equal to or more than 0.8, get 0
How would you do that using only min and max functions (and of course basic +-/x operations) ?
I ask this because I have to calculate this inside a custom piece of software that does not accept/interpret the IF statement, and for the purpose of the asked problem, supports MIN and MAX functions.
if X < 0.8: return 0.8 else: return 0and I don't see why you're searching for a supposed to be "more elegant way" to this with onlyminandmaxfunctions. – Mithridates the Great Apr 13 '20 at 03:10