]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/DoubleConversion.scl
Supply SVG text editor with element measurement context
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / DoubleConversion.scl
1 import "Prelude"
2
3 f :: Float
4 f = 1.0
5
6 d :: Double
7 d = 1.0
8
9 d2f :: Float
10 d2f = fromDouble d
11
12 f2d :: Double
13 f2d = toDouble f
14
15 main = show (d+f2d, f+d2f)
16 --
17 (2.0, 2.0)