Java BigDecimal movePoint(final BigDecimal v1, final int shift)

Here you can find the source of movePoint(final BigDecimal v1, final int shift)

Description

Safe shift (check for null), shift RIGHT if shift>0.

License

Apache License

Declaration

public static BigDecimal movePoint(final BigDecimal v1, final int shift) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;

public class Main {
    /**// ww w .j  ava 2s .c o m
     * Safe shift (check for null), shift RIGHT if shift>0.
     */
    public static BigDecimal movePoint(final BigDecimal v1, final int shift) {
        return v1 == null ? null : v1.movePointRight(shift);
    }
}

Related

  1. mean(List numbers, MathContext context)
  2. median(final BigDecimal[] bigDecimalNumbers)
  3. milliToCent(BigDecimal val)
  4. milliToDollar(BigDecimal val)
  5. mod(long res, BigDecimal value)
  6. moveRight(BigDecimal value, int offset)
  7. nullSafeCompare(BigDecimal pPremierNombre, BigDecimal pSecondNombre)
  8. numberToWordsWithDecimal(BigDecimal value)
  9. nvl(final BigDecimal bigDecimal)