Jump to content

what does (...,-0.0001,0,0.0001,...) mean


Recommended Posts

Just recently I've come across something like the following when reading about variables or settings:

bSomeBoolean=(0,1)

 

meaning that the boolean in question is either 0 or 1 (false or true),

but what does:

fSomeFloat=(...,-0.0001,0,0.0001,...) mean? In all cases I came across recently, the allowable values were magnitudes higher than 0.0001 so it doesn't seem to represent a range, and what are the ... either side? or the 0 in the middle?

 

diziet

Link to comment
Share on other sites

 

but what does:

fSomeFloat=(...,-0.0001,0,0.0001,...) mean?

I would interpret it to be the minimum values. I.e. you can't assign 0.00009 to it- that would result in either an error or getting rounded to 0.0

 

That makes sense, would still make sense without the two ellipses on the ends though:)

Thanks.

 

diziet

 

Link to comment
Share on other sites

From the wiki:


Float literals are sequences of digits (0 through 9) optionally prefixed by a minus sign, and followed by a dot and another sequence of digits. Floats are 32-bits in size, and have a range of 1.175494351 E – 38 to 3.402823466 E + 38 with 7 significant digits.

Edited by Rasikko
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...