Skip to content

Tag Archives: Ruby BigDecimal-class

BigDecimal#%() : %() is a BigDecimal class method which return the modulo of two BigDecimal division. Syntax: BigDecimal.%() Parameter: BigDecimal values - dividend and divisor… Read More
BigDecimal#+() : +() is a BigDecimal class method which return sum of two BigDecimal numbers. Syntax: BigDecimal.+() Parameter: BigDecimal values Return: Sum of the two… Read More
BigDecimal#*() : *() is a BigDecimal class method which return multiplicative value of two BigDecimal values. Syntax: BigDecimal.*() Parameter: BigDecimal values - two operands Return:… Read More
BigDecimal#**() : **() is a BigDecimal class method which return the value of power raised. Syntax: BigDecimal.a**n() Parameter: BigDecimal values - two operands a, n… Read More
BigDecimal#+@() : +@() is a BigDecimal class method which return its own self value. It works as +@a = +(a) Syntax: BigDecimal.+@() Parameter: BigDecimal value… Read More
BigDecimal#>() : >() is a BigDecimal class method compares two BigDecimal values. Syntax: BigDecimal.>() Parameter: BigDecimal values Return: true - if a > b; otherwise… Read More
BigDecimal#<=() : <=() is a BigDecimal class method which compares two BigDecimal values. Syntax: BigDecimal.<=() Parameter: BigDecimal values Return: true - if a <= b;… Read More
BigDecimal#>=() : >=() is a BigDecimal class method which compares two BigDecimal values. Syntax: BigDecimal.>=() Parameter: BigDecimal values Return: true - if a >= b;… Read More
BigDecimal#<=>() : <=>() is a BigDecimal class method which compares two BigDecimal values. Syntax: BigDecimal.<=>() Parameter: BigDecimal values Return: 0 if a equals b; 1… Read More
BigDecimal#==() : ==() is a BigDecimal class method which checks the equality of two BigDecimal values. Syntax: BigDecimal.==() Parameter: BigDecimal values Return: true - if… Read More
BigDecimal#===() : ===() is a BigDecimal class method which compares two BigDecimal values. In case of BigDecimal, it performs exactly like ‘BigDecimal#==()’ method. Syntax: BigDecimal.===()… Read More
BigDecimal#/() : /() is a BigDecimal class method which return the division quotient value of the two BigDecimal values. Syntax: BigDecimal./() Parameter: BigDecimal values Return:… Read More
BigDecimal#-@() : -@() is a BigDecimal class method which return its own self value. It works as -@a = -(a) Syntax: BigDecimal.-@() Parameter: BigDecimal value… Read More
BigDecimal#-() : -() is a BigDecimal class method which return difference of two BigDecimal numbers. Syntax: BigDecimal.-() Parameter: BigDecimal values Return: Difference of the two… Read More
BigDecimal#<() : <() is a BigDecimal class method which compares two BigDecimal values. Syntax: BigDecimal.<() Parameter: BigDecimal values Return: True - if a < b,… Read More

Start Your Coding Journey Now!