From 8fb8fb17b65cdc58a74e4f7f79ed0f5038bea7a6 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Thu, 28 Aug 2014 00:01:33 +0200 Subject: [PATCH] Clarified docs for floor(), ceiling() and round(). --- lib/oga/xpath/evaluator.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/oga/xpath/evaluator.rb b/lib/oga/xpath/evaluator.rb index e840b43..3c251a9 100644 --- a/lib/oga/xpath/evaluator.rb +++ b/lib/oga/xpath/evaluator.rb @@ -1188,7 +1188,8 @@ module Oga ## # Processes the `floor()` function call. # - # This function floors a numeric value and returns the result as a float. + # This function call rounds the 1st argument down to the closest integer, + # and then returns that number as a float. # # @param [Oga::XML::NodeSet] context # @param [Oga::XPath::Node] expression @@ -1203,8 +1204,8 @@ module Oga ## # Processes the `ceiling()` function call. # - # This function returns the ceiling of a numeric value, the result is - # returned as a float. + # This function call rounds the 1st argument up to the closest integer, + # and then returns that number as a float. # # @param [Oga::XML::NodeSet] context # @param [Oga::XPath::Node] expression @@ -1219,8 +1220,8 @@ module Oga ## # Processes the `round()` function call. # - # This function call rounds the 1st argument to the closest integer number - # and then returns that number as a float. + # This function call rounds the 1st argument to the closest integer, and + # then returns that number as a float. # # @param [Oga::XML::NodeSet] context # @param [Oga::XPath::Node] expression