ln.cpp~
来自「浮点数基本运算 浮点数的基本运算主要有四则运算、符号处理、大小比较」· CPP~ 代码 · 共 24 行
CPP~
24 行
#include "../fnexp.hpp"#include "../fnmath.hpp"#include <cstdio>using namespace std;struct t{ static const double f_val = 0.234;};int main(){ printf ("%1.17lf is %1.17lfb%d\n", t::f_val, btil::fn::fn2em<t, 2>::m::f_val, btil::fn::fn2em<t, 2>::e); printf ("%1.17lf\n", btil::fn::ln<t>::value::f_val); printf ("%1.17lf\n", btil::fn::__ln2::f_val); printf ("%1.17lg\n", btil::fn::exp<t>::value::f_val); printf ("%1.17lg\n", btil::fn::pow<t, t>::value::f_val); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?