---
title: "Measure.NumberFormat.FractionStyle"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/measure.numberformat.fractionstyle/"
product: "Aspose.PDF for Java API Reference"
description: "Value which indicates in which manner fraction values are displayed."
---

**Inheritance:**
java.lang.Object, java.lang.Enum < Measure.NumberFormat.FractionStyle > com.aspose.pdf.Measure.NumberFormat.FractionStyle, java.lang.Enum < Measure.NumberFormat.FractionStyle >, com.aspose.pdf.Measure.NumberFormat.FractionStyle

**All Implemented Interfaces:**
Serializable, Comparable < Measure.NumberFormat.FractionStyle >

```
public static enum Measure.NumberFormat.FractionStyle extends Enum < Measure.NumberFormat.FractionStyle >
```

Value which indicates in which manner fraction values are displayed.

## Fields

| Field | Description |
| --- | --- |
| [Round](#Round) | Round fractional values to the nearest whole integer. |
| [ShowAsDecimal](#ShowAsDecimal) | Show fractional values as decimal fraction. |
| [ShowAsFraction](#ShowAsFraction) | Show fractional value as fraction. |
| [Truncate](#Truncate) | Truncate to achieve whole units. |

## Methods

| Method | Description |
| --- | --- |
| [getByValue](#getByValue-int-) |  |
| [getValue](#getValue--) |  |
| [valueOf](#valueOf-java.lang.String-) | Returns the enum constant of this type with the specified name. |
| [values](#values--) | Returns an array containing the constants of this enum type, in the order they are declared. |

### Round {#Round}
```
public static final Measure.NumberFormat.FractionStyle Round
```

Round fractional values to the nearest whole integer.

### ShowAsDecimal {#ShowAsDecimal}
```
public static final Measure.NumberFormat.FractionStyle ShowAsDecimal
```

Show fractional values as decimal fraction.

### ShowAsFraction {#ShowAsFraction}
```
public static final Measure.NumberFormat.FractionStyle ShowAsFraction
```

Show fractional value as fraction.

### Truncate {#Truncate}
```
public static final Measure.NumberFormat.FractionStyle Truncate
```

Truncate to achieve whole units.

### getByValue {#getByValue-int-}
```
public static Measure.NumberFormat.FractionStyle getByValue(int value)
```



### getValue {#getValue--}
```
public int getValue()
```



### valueOf {#valueOf-java.lang.String-}
Returns the enum constant of this type with the specified name.

### values {#values--}
```
public static Measure.NumberFormat.FractionStyle [] values()
```

Returns an array containing the constants of this enum type, in the order they are declared.

**Returns:**
an array containing the constants of this enum type, in the order they are declared
