Home
|
Misc
|
Run Code
|
Code Wall
|
Users
|
Feedback
|
Login
Floating point arithmetics
Language:
Assembly
C#
C++
C
Common Lisp
F#
Go
Haskell
Java
Javascript
Lua
Node.js
Objective-C
Pascal
Perl
Php
Prolog
Python
Python 3
Ruby
Scala
Scheme
Sql Server
Visual Basic
Editor:
CodeMirror
EditArea
Simple
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { Console.WriteLine(((double)1/3)*10 - (double)10/3); //should be zero, but no } } }
Show compiler warnings
[
+
]
Show input
Compilation time: 0.36 sec, absolute running time: 0.12 sec, cpu time: 0.12 sec, average memory usage: 12 Mb, average nr of threads: 2
edit mode
|
history
|
discussion
-4.44089209850063E-16