JoachimSauer wrote:Would they be accurate up to say 1^(-1,000,000)? I've yet to reach such limits but from my own calculations it is feasible that I may need them to be that accurate. Maybe = |
For pretty much all uses, the range is effectively unlimited.
mrwobbles wrote:One raised to the power negative one million?JoachimSauer wrote:Would they be accurate up to say 1^(-1,000,000)?
For pretty much all uses, the range is effectively unlimited.
System.out.println(Math.pow(1, -1000000));
...
1.0
jverd wrote:I think I might have missed a 0 there... So the maximum scale is the maximum 32 bit integer? I think that will be enough but just for shits and giggles say I needed a scale bigger than that, what's my best option?mrwobbles wrote:One raised to the power negative one million?JoachimSauer wrote:Would they be accurate up to say 1^(-1,000,000)?
For pretty much all uses, the range is effectively unlimited.
System.out.println(Math.pow(1, -1000000)); ... 1.0
SpoilsportSystem.out.println(Math.pow(1, -1000000)); ... 1.0
So the maximum scale is the maximum 32 bit integer?That's an absolutely colossal number - do you realise how big it is?
mrwobbles wrote:Find a different universejverd wrote:I think I might have missed a 0 there... So the maximum scale is the maximum 32 bit integer? I think that will be enough but just for shits and giggles say I needed a scale bigger than that, what's my best option?mrwobbles wrote:One raised to the power negative one million?JoachimSauer wrote:Would they be accurate up to say 1^(-1,000,000)?
For pretty much all uses, the range is effectively unlimited.
System.out.println(Math.pow(1, -1000000)); ... 1.0
mrwobbles wrote:Work with logarithms.
I think that will be enough but just for kicks and giggles say I needed a scale bigger than that, what's my best option?
roger.bagnall wrote:2,147,483,647 I think. Which was the starting budget if you cheated in SimCity 2000.So the maximum scale is the maximum 32 bit integer?That's an absolutely colossal number - do you realise how big it is?
mrwobbles wrote:Uhm, check Integer.MAX_VALUE
2,147,483,647 I think.
PhHein wrote:mrwobbles wrote:Uhm, check Integer.MAX_VALUE
2,147,483,647 I think.
public class run {
public static void main(String[] args) {
System.out.print(Integer.MAX_VALUE);
}
}