12,350,443 members (23,393 online)
Rate this:
See more:
What does this code do?

```public class Epsilon
{
public static double Value
{
get { return 1.0e-5; }
}
}```
Posted 12-Oct-12 4:54am
Member 8686696 12-Oct-12 10:55am

i understand that it'll return the 1.0e-5, is it a common value when dealing with Matrices?
digimanus 12-Oct-12 11:00am

you have a readonly property in stead of a const or something like that.

Rate this:

## Solution 2

To add a little to Marcus's solution, it's scientific notation, 'e' is basically 'times 10 to the power of' so in this case, it's 1.0 times 10^(-5).

(This next part is just an educated guess)

Epsilon is sometimes used in mathematics to represent a minimal change from one number to another (e.g. 1 + epsilon is just a tiny bit above 1), but since computers are discrete I'm guessing 1.0e-5 has just been arbitrarily chosen as a small value that will behave similar to epsilon in mathematics, but for discrete values.

It's really hard to tell you more without some context. We don't know what the rest of the code looks like.
Rate this:

## Solution 3

That's the `OOP` way to say:
```const double EPSILON = 0.00005;
```
SameerNA 12-Oct-12 15:31pm

+5 from me
Monjurul Habib 15-Oct-12 16:42pm

5!
Rate this:

## Solution 1

It just returns 0.00001 (It is just a different notation for that value)

Top Experts
Last 24hrsThis month
 OriginalGriff 263 Sergey Alexandrovich Kryukov 96 Dave Kreskowiak 70 ppolymorphe 60 RyanDev 50
 OriginalGriff 8,740 Sergey Alexandrovich Kryukov 6,042 Dave Kreskowiak 2,904 ppolymorphe 2,256 Richard MacCutchan 2,169