Skip to content

Instantly share code, notes, and snippets.

View hwj0623's full-sized avatar
๐ŸŽฏ
Focusing

hwj0623 hwj0623

๐ŸŽฏ
Focusing
  • Seoul
View GitHub Profile
@hwj0623
hwj0623 / main.swift
Last active April 5, 2019 08:27
Step 2-4~7 ๋ฐ ์ถ”๊ฐ€ํ•™์Šต ์ค‘ 4๋ฒˆ ๋ฐ˜์˜
// main.swift
// UnitConverter
//
import Foundation
/// ์†Œ์ˆซ์  n์ž๋ฆฌ์—์„œ ๋ฐ˜์˜ฌ๋ฆผ extension
extension Double {
func rounded(toPlace places: Int)-> Double {
let divisor = pow(10.0, Double(places))
return (self * divisor).rounded()/divisor
@hwj0623
hwj0623 / main.swift
Last active April 3, 2019 09:42
04/02 pair programming of UnitConverter
// main.swift
// UnitConverter
//
// Created by Doran & Dominic on 02/04/2019.
// Copyright ยฉ 2019 hw. All rights reserved.
import Foundation
// ์†Œ์ˆซ์  n์ž๋ฆฌ์—์„œ ๋ฐ˜์˜ฌ๋ฆผ extension