C언어 pow()

1 개요[ | ]

C언어 pow()
#include <stdio.h>
#include <math.h>
int main() {
    printf("%f\n", pow(2, -3)); // 0.125000
    printf("%f\n", pow(2, 10)); // 1024.000000
}
#include <stdio.h>
#include <math.h>
int main() {
    printf("%d\n", (int)pow(2, 10)); // 1024
}

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}