7.105427357601e-015 is a very, very, very small number,

so this is a precision issue

I assume that you don't want to loose the decimal part,

so you must have some precision in mind.

What you could do is multiply by 100, then round and the divide by 100 again.

Then you will have a precison up to 0.01

3.9999999999999 will become 4.00

and 7.105427357601e-015 will become 0

If you need more precision, multiply by thousand, round and divide again

so this is a precision issue

I assume that you don't want to loose the decimal part,

so you must have some precision in mind.

What you could do is multiply by 100, then round and the divide by 100 again.

Then you will have a precison up to 0.01

3.9999999999999 will become 4.00

and 7.105427357601e-015 will become 0

If you need more precision, multiply by thousand, round and divide again