# Class: com.pnfsoftware.jeb.core.units.code.asm.render.NumberFormatter

A number formatter used to format immediates. 

 Notes: 
 
- max 64\-bit long 
- signedness: applicable to octal/decimal/hexadecimal, N/A for binary/ascii

## Constructor: NumberFormatter


## Constructor: NumberFormatter
- parameter: `defaultNumberFormatter`, type: `com.pnfsoftware.jeb.core.units.code.asm.render.NumberFormatter`

Description: 
parameter: defaultNumberFormatter: 

## Method: format
- parameter: `bitsize`, type: `int`
- parameter: `rawValue`, type: `long`
- return type: `java.lang.String`

Description: Format a number using the formatter's current settings.

## Method: format
- parameter: `bitsize`, type: `int`
- parameter: `rawValue`, type: `long`
- parameter: `base`, type: `com.pnfsoftware.jeb.core.units.code.asm.render.NumberFormatter.NumberBase`
- parameter: `treatAsSignedNumber`, type: `boolean`
- return type: `java.lang.String`


## Method: format
- parameter: `bitsize`, type: `int`
- parameter: `rawValue`, type: `java.math.BigInteger`
- return type: `java.lang.String`


## Method: format
- parameter: `bitsize`, type: `int`
- parameter: `rawValue`, type: `java.math.BigInteger`
- parameter: `base`, type: `com.pnfsoftware.jeb.core.units.code.asm.render.NumberFormatter.NumberBase`
- parameter: `treatAsSignedNumber`, type: `boolean`
- return type: `java.lang.String`

Description: Trivial implementation of a BigInteger formatter. Reverts to using [#format(int, long, NumberBase, boolean)](#format(int, long, NumberBase, boolean)) if bitsize is <= 64.
parameter: bitsize: 
parameter: rawValue: 
parameter: base: 
parameter: treatAsSignedNumber: 
return: 

## Method: getBase
- return type: `com.pnfsoftware.jeb.core.units.code.asm.render.NumberFormatter.NumberBase`


## Method: getEndianness
- return type: `com.pnfsoftware.jeb.util.io.Endianness`

Description: Retrieve endianness. Use
return: endianness

## Method: getForcePositiveRenderingForNonBase10
- return type: `boolean`


## Method: getHexaNotationType
- return type: `com.pnfsoftware.jeb.core.units.code.asm.render.NumberFormatter.HexaNotationType`


## Method: hasConstantsFormatterOverride
- return type: `boolean`


## Method: isSignedNumber
- return type: `boolean`


## Method: rotateBase
- return type: `com.pnfsoftware.jeb.core.units.code.asm.render.NumberFormatter.NumberBase`


## Method: setBase
- parameter: `base`, type: `com.pnfsoftware.jeb.core.units.code.asm.render.NumberFormatter.NumberBase`


## Method: setConstantsFormatterOverride
- parameter: `cf`, type: `com.pnfsoftware.jeb.core.units.code.asm.render.ConstantsFormatter`


## Method: setEndianness
- parameter: `endianness`, type: `com.pnfsoftware.jeb.util.io.Endianness`

Description: Change endianness. Note that default [NumberFormatter](NumberFormatter) consider that data is Little Endian ordered \(meaning that ascii representation will be flipped in comparison to raw value\).
parameter: endianness: 

## Method: setForcePositiveRenderingForNonBase10
- parameter: `enabled`, type: `boolean`


## Method: setHexaNotationType
- parameter: `hexaNotationType`, type: `com.pnfsoftware.jeb.core.units.code.asm.render.NumberFormatter.HexaNotationType`


## Method: setSignedNumber
- parameter: `signedNumber`, type: `boolean`


