Skip to content

Tag Archives: Ruby BigDecimal-class

BigDecimal#sign() : sign() is a BigDecimal class method which signs the Big decimal to the nearest integer. Syntax: BigDecimal.sign() Parameter: BigDecimal values Return: signs the… Read More
BigDecimal#round() : round() is a BigDecimal class method which rounds the Big decimal to the nearest integer. Syntax: BigDecimal.round() Parameter: BigDecimal values Return: rounds the… Read More
BigDecimal#exp() : exp() is a BigDecimal class method which returns the value of e (the base of natural logarithms) raised to the power of decimal,… Read More
BigDecimal#E() : E() is a BigDecimal class method which returns the value of arctangent to the specified number of digits of precision, numeric. Syntax: BigDecimal.E()… Read More
BigDecimal#sin() : sin() is a BigDecimal class method which returns the sine of decimal to the specified number of digits of precision, numeric. Syntax: BigDecimal.sin()… Read More
BigDecimal#remainder() : remainder() is a BigDecimal class method which divides the two BigDecimal values and returns the remainder value. Syntax: BigDecimal.remainder() Parameter: BigDecimal values Return:… Read More
BigDecimal#quo() : quo() is a BigDecimal class method which divides the two BigDecimal values. Syntax: BigDecimal.quo() Parameter: BigDecimal values Return: Divides the two BigDecimal values.… Read More
BigDecimal#precs() : precs() is a BigDecimal class method which checks whether the BigDecimal value is nan value. Syntax: BigDecimal.precs() Parameter: BigDecimal values to check regarding… Read More
BigDecimal#to_r() : to_r() is a BigDecimal class method which returns the value of Big decimal as a rational number. Syntax: BigDecimal.to_r() Parameter: BigDecimal values Return:… Read More
BigDecimal#to_int() : to_int() is a BigDecimal class method which returns the value as an Integer. Syntax: BigDecimal.to_int() Parameter: BigDecimal values Return: the value as an… Read More
BigDecimal#to_i() : to_i() is a BigDecimal class method which returns the value as an Integer. Syntax: BigDecimal.to_i() Parameter: BigDecimal values Return: the value as an… Read More
BigDecimal#to_f() : to_f() is a BigDecimal class method which returns a new Float object having approximately the same value as the BigDecimal number. Syntax: BigDecimal.to_f()… Read More
BigDecimal#to_digits() : to_digits() is a BigDecimal class method which converts a Big decimal to string of the form “nnnnnn.mmm” Syntax: BigDecimal.to_digits() Parameter: BigDecimal values Return:… Read More
BigDecimal#to_d() : to_d() is a BigDecimal class method which returns the self of Big decimal. Syntax: BigDecimal.to_d() Parameter: BigDecimal values Return: the self of Big… Read More
BigDecimal#sub() : sub() is a BigDecimal class method which returns the subtraction using a specified value. Syntax: BigDecimal.sub() Parameter: BigDecimal values Return: the subtraction using… Read More