---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/numberformat
---

# NumberFormat

## Overview

`NumberFormat` is a class in Aspose.Cells FOSS for C++.

Provides number format operations.

This class declares 5 methods for NumberFormat objects in C++ programs.
Available methods include: `GetBuiltInFormat`, `GetBuiltInFormatId`, `IsBuiltInFormat`, `NumberFormat`, `ResolveFormatCode`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `NumberFormat()` | Calls NumberFormat on this NumberFormat instance. |
| `GetBuiltInFormat(formatId: int)` → `std::string` | Gets the built in format. The format id. The string. |
| `GetBuiltInFormatId(formatCode: std::string_view)` → `std::optional<int>` | Gets the built in format id. The format code. The int. |
| `IsBuiltInFormat(formatCode: std::string_view)` → `bool` | Performs is built in format. The format code. true if the condition is met; otherwise, false. |
| `ResolveFormatCode(number: int, custom: std::string_view)` → `std::string` | Resolves the format code. The number. The custom format code. The resolved format code string. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)