Skip to content

Tag Archives: Ruby BigDecimal-class

BigDecimal#sqrt() : sqrt() is a BigDecimal class method which returns the square root of the value. Syntax: BigDecimal.sqrt() Parameter: BigDecimal values Return: the square root… Read More
BigDecimal#split() : split() is a BigDecimal class method which splits a BigDecimal number into four parts, returned as an array of values. Syntax: BigDecimal.split() Parameter:… Read More
BigDecimal#log() : log() is a BigDecimal class method which returns the natural logarithm of decimal to the specified number of digits of precision, numeric. Syntax:… Read More
BigDecimal#cos() : cos() is a BigDecimal class method which returns the value of cosine to the specified number of digits of precision, numeric. Syntax: BigDecimal.cos()… Read More
BigDecimal#atan() : atan() is a BigDecimal class method which returns the value of arctangent to the specified number of digits of precision, numeric. Syntax: BigDecimal.atan()… Read More
BigDecimal#PI() : PI() is a BigDecimal class method which returns the value of pi to the specified number of digits of precision, numeric. Syntax: BigDecimal.PI()… Read More
BigDecimal#zero?() : zero?() is a BigDecimal class method which checks whether the Big decimal value is zero. Syntax: BigDecimal.zero?() Parameter: BigDecimal values Return: true –… Read More
BigDecimal#truncate() : truncate() is a BigDecimal class method which returns the Big decimal by truncating to the nearest integer (by default). Syntax: BigDecimal.truncate() Parameter: BigDecimal… Read More
BigDecimal#to_s() : to_s() is a BigDecimal class method which returns the value of Big decimal as a string. Syntax: BigDecimal.to_s() Parameter: BigDecimal values Return: the… Read More
infinite?() is a BigDecimal class method which checks whether the BigDecimal value is infinite. Syntax: BigDecimal.infinite?() Parameter: BigDecimal values to check Return: nil : if… Read More
BigDecimal#ceil() : ceil() is a BigDecimal class method which return the ceil value of the passed BigDecimal value. Syntax: BigDecimal.ceil() Parameter: – BigDecimal value which… Read More
BigDecimal#abs() : abs() is a BigDecimal class method which works on BigDecimal values and converts them to the absolute form. Syntax: BigDecimal.abs() Parameter: BigDecimal value… Read More
BigDecimal#coerce() : coerce() is a BigDecimal class method which return the ceil value of the passed BigDecimal value. Syntax: BigDecimal.coerce() Parameter: numeric values (can be… Read More
BigDecimal#div() : div() is a BigDecimal class method which divided two BigDecimal value. If digits is 0, the result is the same as for the… Read More
BigDecimal#divmod() : divmod() is a BigDecimal class method which divided two BigDecimal value. Syntax: BigDecimal.divmod() Parameter: BigDecimal values to divide Return: Quotient and Remainder of… Read More

Start Your Coding Journey Now!