---
title: isEqualTo
framework: Kernel
role: symbol
role_heading: Instance Method
platforms: [driverkit 19.0+, macOS 10.15.2+]
path: kernel/osnumber/3434345-isequalto
---

# isEqualTo

Compares the string with an OSObject

## Declaration

```occ
virtual bool isEqualTo(const OSMetaClassBase *anObject);
```

## Parameters

- `anObject`: The object to compare with.

## Return Value

Return Value true iff the object is of class OSNumber isEqualTo() returns true.

## Discussion

Discussion If the object is of class OSNumber, the result of isEqualTo(const OSNumber * aDataObj) is returned. Otherwise false is returned.

## See Also

### Comparing Numbers

- [isEqualTo](kernel/osnumber/3180922-isequalto.md)
