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
Copy file name to clipboardExpand all lines: lib/rdf/model/literal/numeric.rb
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,40 @@ def *(other)
123
123
end
124
124
end
125
125
126
+
##
127
+
# Exponent − Performs exponential (power) calculation on operators.
128
+
#
129
+
# If other is an instance of xs:integer, the result is self raised to the power of other as defined in the [IEEE 754-2008] specification of the pown function applied to a 64-bit binary floating point value and an integer.
130
+
#
131
+
# Otherwise $y is converted to an xs:double by numeric promotion, and the result is the value of $x raised to the power of $y as defined in the [IEEE 754-2008] specification of the pow function applied to two 64-bit binary floating point values.
132
+
#
133
+
# @param [Literal::Numeric, #to_i, #to_f, #to_d] other
0 commit comments