Skip to content

Instantly share code, notes, and snippets.

@unnonouno
Created February 15, 2014 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unnonouno/9020819 to your computer and use it in GitHub Desktop.
Save unnonouno/9020819 to your computer and use it in GitHub Desktop.
absはコワイ
#include <iostream>
#include <stdlib.h>
int main() {
double x = 1.0e+100;
double y = abs(x);
std::cout << x << ' ' << y << std::endl;
}
% ./a.out
1e+100 -2.14748e+09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment