Here you can find the source of getRadixNumberInString(BigInteger integerNumber, int radix)
Parameter | Description |
---|---|
integerNumber | A integer number |
radix | The radix or base to be used in the string representation |
public static String getRadixNumberInString(BigInteger integerNumber, int radix)
//package com.java2s; //License from project: Open Source License import java.math.BigInteger; public class Main { /**//from w w w .jav a 2s . c o m * This method gets the required representation of any number according to the * given radix or base. * @param integerNumber A integer number between {@link Integer#MIN_VALUE} and {@link Integer#MAX_VALUE} * @param radix The radix or base to be used in the string representation * @return The number representation in the specified radix */ public static String getRadixNumberInString(Integer integerNumber, int radix) { return Integer.toString(integerNumber, radix); } /** * This method gets the required representation of any number according to the * given radix or base. * @param integerNumber A integer number * @param radix The radix or base to be used in the string representation * @return The number representation in the specified radix */ public static String getRadixNumberInString(BigInteger integerNumber, int radix) { return integerNumber.toString(radix); } }