Aug-15-2017, 07:22 PM
I don't know about names. We did this at my old job with survey weights, but I'm not aware of any commonly used terms for it. How about a generalized form called int_power:
def int_power(n, pow): if pow >= 0: return int(round(n * 10 ** pow, 0)) else: return n * 10 ** pow
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures