Skip to content

Commit

Permalink
Merge pull request #76 from xushiwei/q
Browse files Browse the repository at this point in the history
ignore go.work
  • Loading branch information
xushiwei authored Feb 16, 2024
2 parents ff39416 + 4ef3638 commit 28a3f2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ go.json

.vscode
.idea
go.work*

cmd/qfmt/qfmt
4 changes: 2 additions & 2 deletions 106-Types/types-2.gop
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ d := bigrat(a) - 1/3r + 3*1/2r
println a, b, c, d

r1 := 1r
br := bigrat(1r) //Casting rational numbers works like other primitive types
cr := bigrat(1) //Casting normal numbers also works like other primitive types
br := bigrat(1r) // Casting rational numbers works like other primitive types
cr := bigrat(1) // Casting normal numbers also works like other primitive types
println r1/3 // 0
println br/3 // 1/3
println cr/3 // 1/3

0 comments on commit 28a3f2d

Please sign in to comment.