Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- writef( "%20.15drn", 1.0 / 3.0 ); // 0.333333333333333
- writeln( 1.0 / 3.0 ); // 0.333333
- # python2
- print 1.0 / 3.0 # 0.333333333333
- # python3
- print( 1.0 / 3.0 ) # 0.3333333333333333
- # julia
- println( 1.0 / 3.0 ) # 0.3333333333333333
- # gortran
- print *, 1.0d0 / 3.0d0 # 0.33333333333333331
- # swift
- print( 1.0 / 3.0 ) # 0.333333333333333
- # nim
- echo( 1.0 / 3.0 ) # 0.3333333333333333
- # g++
- cout << 1.0 / 3.0 << endl; # 0.333333
- # d (dmd)
- writeln( 1.0 / 3.0 ); # 0.333333
Add Comment
Please, Sign In to add comment