##### BigNumber

I am trying to make something like BigInteger and BigDecimal in java, so it can be a large number and have decimals, I have the base of BigInteger rn, but I don't know how I can make it

Ask coding questions

I am trying to make something like BigInteger and BigDecimal in java, so it can be a large number and have decimals, I have the base of BigInteger rn, but I don't know how I can make it

what exactly do you mean by "base"? That seems like more than just a base...

@Highwayman that in the BigNumber file is the code for biginteger I was hoping to modify it

modify it for decimals? Why don't you make a "Big

Ratio" instead or something. Seems like that would be easier. @Bunnytoes@Highwayman maybe I could do that, but I don't know how

A ratio/fraction is made up of two integers: a numerator and a denominator, therefore a BigRatio is made up of two BigIntegers(again a numerator and denominator)

remember you rules of addition, subtraction, multiplication, and division of fractions.

implement.

yeah?

@Bunnytoes

@Highwayman I know what ratios are, but I don't know how to make a data type

What do you mean? Do you know what a class is? You BigNumber that you just implemented is a class. When you define a class, you are defining a data type.

@Bunnytoes

@Highwayman yes I do, but BigInteger is more complex than normal variables

But you've already defined it, have you not? BigRatio does not need to redefine all those things. I am unsure how this applies...

@Bunnytoes