public class BigDecimalUtils extends Object
BigDecimal
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
fromDouble(Double value,
boolean stripTrailingZeros)
Convert a double to a BigDecimal.
|
public static BigDecimal fromDouble(Double value, boolean stripTrailingZeros)
value
- non-null value to convert into a BigDecimal.stripTrailingZeros
- should the trailing zero(s) be removed? e.g. 25.0 would become 25Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.