The Wayback Machine - https://web.archive.org/web/20180419092307/http://ja.cppreference.com:80/w/cpp/numeric/math/trunc
名前空間
変種
操作

std::trunc

提供: cppreference.com
< cpp‎ | numeric‎ | math

 
 
 
一般的な数学関数
関数
基本的な演算
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
指数関数
(C++11)
(C++11)
(C++11)
(C++11)
冪関数
(C++11)
(C++11)
三角関数と双曲線関数
(C++11)
(C++11)
(C++11)
誤差関数とガンマ関数
(C++11)
(C++11)
(C++11)
(C++11)
最も近い整数
(C++11)(C++11)(C++11)
trunc
(C++11)
(C++11)
(C++11)(C++11)(C++11)
浮動小数点操作関数
(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)
(C++11)
分類および比較
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
マクロ定数
(C++11)(C++11)(C++11)(C++11)(C++11)
 
ヘッダ <cmath> で定義
float       trunc( float arg );
(C++11およびそれ以降)
double      trunc( double arg );
(C++11およびそれ以降)
long double trunc( long double arg );
(C++11およびそれ以降)
double      trunc( Integral arg );
(C++11およびそれ以降)
argよりも大きさが大きくない最も近い整数を計算.
Original:
Computes nearest integer not greater in magnitude than arg.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

arg -
浮動小数点値
Original:
floating point value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

argよりも大きさが大きくない最も近い整数.
Original:
Nearest integer not greater in magnitude than arg.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[[Image:
値を返します
Original:
{{{2}}}
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
|200x200px]]
Argument

[編集] ノート

整数値は、常に与えられた浮動小数点型で表現できる.
Original:
The integer value can be always represented by the given floating point type.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 参照

指定された値より大きくない最も近い整数を返します
(関数) [edit]
指定された値より小さくない最も近い整数を返します
(関数) [edit]
(C++11)(C++11)(C++11)
最も近い整数を返します。 ちょうど中間の場合はゼロから離れる方向に丸めます
(関数) [edit]