Skip to content

Commit

Permalink
retouch playgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
dankogai committed Feb 8, 2016
1 parent 4e0edae commit b47bc87
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
11 changes: 4 additions & 7 deletions OSX.playground/Pages/Welcome.xcplaygroundpage/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import Cocoa // this is an OSX playground
let bn = BigInt(2) ** 128
let bq = BigInt(1).over(bn)
let bz = bq + bq.i
print(bn)
print(bq)
print(bz)
bz + bz
bz - bz
bz * bz
bz / bz
print(bz + bz)
print(bz - bz)
print(bz * bz)
print(bz / bz)
7 changes: 4 additions & 3 deletions iOS.playground/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import UIKit // this is an iOS playground
let bn = BigInt(2) ** 128
let bq = BigInt(1).over(bn)
let bz = bq + bq.i
print(bn)
print(bq)
print(bz)
print(bz + bz)
print(bz - bz)
print(bz * bz)
print(bz / bz)
7 changes: 0 additions & 7 deletions test/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,6 @@ test.ne(0.over(0), 0.over(0), "NaN != NaN")
//import Foundation
//print(String(format:"%a", -(BigInt(1) << 128 - 1).toDouble() ))
//print(String(format:"%a", -BigInt(1).over(BigInt(1) << 128 - 1).toDouble() ))

let bn = BigInt(2) ** 128
let bq = BigInt(1).over(bn)
let bz = bq + bq.i

print(bz / bz)

test.done()


7 changes: 4 additions & 3 deletions tvOS.playground/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import UIKit // this is a tvOS playground
let bn = BigInt(2) ** 128
let bq = BigInt(1).over(bn)
let bz = bq + bq.i
print(bn)
print(bq)
print(bz)
print(bz + bz)
print(bz - bz)
print(bz * bz)
print(bz / bz)

0 comments on commit b47bc87

Please sign in to comment.