**Inheritance:**
java.lang.Object, [com.aspose.imaging.xmp.types.XmpTypeBase](../../com.aspose.imaging.xmp.types/xmptypebase)
```
public final class XmpReal extends XmpTypeBase
```

表示 XMP Real。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [XmpReal(float value)](#XmpReal-float-) | 初始化 `XmpReal` 类的新实例。 |
| [XmpReal(String value)](#XmpReal-java.lang.String-) | 初始化 `XmpReal` 类的新实例。 |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getValue()](#getValue--) | 获取或设置 float 值。 |
| [setValue(float value)](#setValue-float-) | 获取或设置 float 值。 |
| [getXmpRepresentation()](#getXmpRepresentation--) | 获取 XMP 格式的字符串值。 |
### XmpReal(float value) {#XmpReal-float-}
```
public XmpReal(float value)
```


初始化 `XmpReal` 类的新实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float | 浮点值。 |

### XmpReal(String value) {#XmpReal-java.lang.String-}
```
public XmpReal(String value)
```


初始化 `XmpReal` 类的新实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | java.lang.String | 值。 |

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


获取或设置 float 值。

值：浮点值。

**Returns:**
float
### setValue(float value) {#setValue-float-}
```
public void setValue(float value)
```


获取或设置 float 值。

值：浮点值。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | float |  |

### getXmpRepresentation() {#getXmpRepresentation--}
```
public String getXmpRepresentation()
```


获取 XMP 格式的字符串值。

**Returns:**
java.lang.String - 返回 XMP 格式中包含的字符串值。
