We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I believe the following don't yet exist in jsonnet. If not, it would be great if they were added:
pi = 3.141592653589793
deg2rad(x) = pi/180 * x
rad2deg(x) = 180/pi * x
atan2(y, x)
pow2
pow10
log2
log10
round(x, places=0)
hypot(x, y) = sqrt(x*x + y*y)
The text was updated successfully, but these errors were encountered:
Corresponding PR #1187 has been merged.
Sorry, something went wrong.
No branches or pull requests
I believe the following don't yet exist in jsonnet. If not, it would be great if they were added:
pi = 3.141592653589793
deg2rad(x) = pi/180 * x
rad2deg(x) = 180/pi * x
atan2(y, x)
pow2
,pow10
(it's nice to have unary functions instead of needing to define the lambda)log2
,log10
(easier and shorter than remembering that log_a(b) = log(b)/log(a))round(x, places=0)
to customize how many decimals to keephypot(x, y) = sqrt(x*x + y*y)
The text was updated successfully, but these errors were encountered: