Skip to main content
GameDev.net gamedev.net
🔒 Locked

[java] Help!!! Bounds

Started by ace84_84 Jan 22, 2006 at 10:10 PM 1 replies 650+ views
Original Post
ace84_84
ace84_84
Hello, i need some help, say I have 2 numbers, and I want to find the theoretical bound between those two numbers, how would i go aobut doing that? Me.
Lucidquiet
Lucidquiet
Explain "theoretical bounds" -- there are an infinte number of real numbers between any two rational or natural numbers. Large integral numbers cannot all be represented by floating point numbers. There are gaps. Is this what you are referring to?

L-
"Education is when you read the fine print; experience is what you get when you don't." -Pete Seegerwww.lucid-edge.net
tombr
tombr
int java.lang you find Classes for all the primitive types, like java.lang.Integer. They got MAX_VALUE and MIN_VALUE fields that you can use to caculate the "bounds". Not sure if it is what you are looking for.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.