You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should add abs to the set of "universal" predeclared functions, following Python3. It would return the absolute magnitude of its argument, preserving type (float or int), unlike Python3's math.fabs, which always returns a float.
The text was updated successfully, but these errors were encountered:
adonovan
changed the title
spec: add abs() function to compute absolute value
spec: add abs(int or float) function to compute absolute value
Mar 11, 2021
We should add
abs
to the set of "universal" predeclared functions, following Python3. It would return the absolute magnitude of its argument, preserving type (float or int), unlike Python3's math.fabs, which always returns a float.Context: google/starlark-go#357 (comment)
The text was updated successfully, but these errors were encountered: