Skip to content

Commit

Permalink
feat: add radians and degrees functions (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
richtia authored Aug 23, 2023
1 parent 8969a40 commit 2da2afa
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions extensions/functions_arithmetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,46 @@ scalar_functions:
on_domain_error:
values: [ NAN, ERROR ]
return: fp64
-
name: "radians"
description: >
Converts angle `x` in degrees to radians.
impls:
- args:
- name: x
value: fp32
options:
rounding:
values: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
return: fp32
- args:
- name: x
value: fp64
options:
rounding:
values: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
return: fp64
-
name: "degrees"
description: >
Converts angle `x` in radians to degrees.
impls:
- args:
- name: x
value: fp32
options:
rounding:
values: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
return: fp32
- args:
- name: x
value: fp64
options:
rounding:
values: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
return: fp64
-
name: "abs"
description: >
Expand Down

0 comments on commit 2da2afa

Please sign in to comment.