1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Merge pull request #182 from mdaines/sqrt-builtin

Add builtin for calculating square root
This commit is contained in:
Stephen Dolan
2013-09-14 16:34:52 -07:00
3 changed files with 29 additions and 0 deletions

View File

@@ -633,6 +633,16 @@ sections:
input: '3.14159'
output: ['3']
- title: `sqrt`
body: |
The `sqrt` function returns the square root of its numeric input.
examples:
- program: 'sqrt'
input: '9'
output: ['3']
- title: `tonumber`
body: |