public class VCardFloatFormatter extends Object
Formats floating-point values for vCards. This ensures that numbers are rendered the same, no matter the default locale.
Constructor and Description |
---|
VCardFloatFormatter()
Creates a new formatter with a max of 6 decimals.
|
VCardFloatFormatter(int decimals)
Creates a new formatter.
|
Modifier and Type | Method and Description |
---|---|
String |
format(double number)
Formats a number for inclusion in a vCard.
|
public VCardFloatFormatter()
public VCardFloatFormatter(int decimals)
decimals
- the max number of decimal placesCopyright © 2012–2023 Michael Angstadt. All rights reserved.