Javascript for [ 0 , 1 ]

hi guys , plz give your genious knowledge on this .

problem : [ 0 , 1 ] , in this interval ,

how to take first 10 values that are greater than zero but short than 1 ?

There is no such value.
What’s the first value greater than 0 but less than 1?
0.1?
0.01?
0.001?
(I can keep going infinitely. You can always divide by 10 more.)

Also, the pedant in me requires me to say that the first value in the range [0,1] is 0. the []'s mark it as Inclusive. (0,1) would be exclusive.

thanks for reply.
that was the problem , when javascript for was applied !!!

plz re-consider the problem and take ( 0 , 1 ) instead of [ 0 , 1 ]

It doesnt change the answer.

This isnt a Javascript problem; your problem, as stated, does not have a mathematical answer. (Well, at least not one in the Real Number System)

Consider this: What is the “first value that is greater than zero but shorter than 1”?

If you can answer that, I can tell you what the javascript code would be.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.