BBjNumber::equals

Description

In BBj 7.0 and higher, this method compares this BBjNumber with the specified Object for equality.

Syntax

Return Value

Method

boolean

equals(Object val)

Parameters

Variable

Description

val

Object to which this BBjNumber is to be compared.

Return Value

True if and only if the specified Object is a BBjNumber whose value and scale are equal to this BBjNumber's.

Remarks

None.

Example

rem ' BBjNumber

print "BBjNumber sample code"
n! = 3.14159
print "n!=",n!.toString()
print "n!.booleanValue()=",n!.booleanValue()
print "n!.byteValue()=",n!.byteValue()
print "n!.doubleValue()=",n!.doubleValue()
print "n!.equals(3.14159))=",n!.equals(3.14159)
print "n!.floatValue()=",n!.floatValue()
print "n!.hashCode()=",n!.hashCode()
print "n!.intValue()=",n!.intValue()
print "n!.longValue()=",n!.longValue()
print "n!.shortValue()=",n!.shortValue()

See Also

BBjAPI

BBjNumber

BBjNumber::hashCode()

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.