我想避免在 Hadoop Pig 中使用指数表示法。 例如。
我的输出是这样的
123,123123,3.8284426969382444E14
我怎样才能避免使用指数符号?
最佳答案
您可以使用 BigDecimal.toPlainString() :
Returns a string representation of this BigDecimal without an exponent field.
示例:
BigDecimal number = new BigDecimal("3.8284426969382444E14");
System.out.println(number.toPlainString());
输出:
382844269693824.44
关于java - 避免在 Hadoop pig 中使用指数表示法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13319261/