Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- matrix-vector product
- linear dependence
- Big-O 예제
- 빅오메가
- NumPy
- 코틀린 시작하기
- trivial solution
- solutions of matrix equation
- itertools
- 랜덤 순서 배열
- recursive algorithms
- 재귀함수
- matrix trnasformations
- 알고리즘 분석의 실례
- nontrivial solution
- homogeneous linear system
- 배열 섞기
- one-to-one
- Big Theta
- python
- matrix fo a linear transformation
- 코틀린 Hello World!
- Big-Oh 예제
- 빅오 표기법
- nonhomogeneous linear system
- Big-Oh notation
- 빅세타
- 일차변환
- 이진 탐색
- Big Omega
Archives
- Today
- Total
코딩 연습
(줄리아) 형 변환 본문
반응형
문자를 숫자로 바꾸는 경우
julia> parse(Int64, "53")
53
julia> parse(Float64, "1.414")
1.414
julia> parse(Int64, "balck pink")
ERROR: ArgumentError: invalid base 10 digit 'b' in "balck pink"
소수를 정수로 바꾸는 경우
julia> trunc(Int64, 3.141592)
3
julia> trunc(Int64, -3.141592)
-3
숫자를 문자로 바꾸는 경우
julia> string(123)
"123"
julia> string(2.718)
"2.718"
반응형
Comments