`fn main() raises:
var sonuc=topla(1.0004,.002)
print(sonuc)
var sonuc2=topla2(1.0004,.002)
print(sonuc2)
var sonuc3=topla3(1.0004,.002)
print(sonuc3)
var sonuc4=topla4(1.0004,.002)
print(sonuc4)
Include relevant code snippet or link to code that did not work as expected.
If applicable, add screenshots to help explain the problem.
If using the Playground, name the pre-existing notebook that failed and the steps that led to failure.
Include anything else that might help us debug the issue.
System information
- What OS did you do install Mojo on ?
- Provide version information for Mojo by pasting the output of `mojo -v`
- Provide Modular CLI version by pasting the output of `modular -v`
Bug description
`fn main() raises: var sonuc=topla(1.0004,.002) print(sonuc) var sonuc2=topla2(1.0004,.002) print(sonuc2) var sonuc3=topla3(1.0004,.002) print(sonuc3) var sonuc4=topla4(1.0004,.002) print(sonuc4)
def topla(x,y): return x+y
fn topla2(x:Float16,y:Float16)-> Float16: return x+y
fn topla3(x:Float32,y:Float32)-> Float32: return x+y
fn topla4(x:Float64,y:Float64)-> Float64: return x+y`
1.0024 1.001953125 1.0023999214172363 1.0024
Steps to reproduce
System information