[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/numeric/math/trunc [Back]  [Original]

std::trunc cppreference.com
cppreference.com

std::trunc

cppreference.com

<metanoindex/>

 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
(C++17)
(C++20)
(C++11)
(C++11)
(C++17)
(C++17)
(C++20)
(C++20)
(C++11)
(C++17)
(C++20)
(C++23)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
 
(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)
(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)
 
<tbody> </tbody>
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.
:
Computes nearest integer not greater in magnitude than arg.
Google.
. .

arg
:
floating point value
Google.
. .

, , arg.
:
Nearest integer not greater in magnitude than arg.
Google.
. .
[[Image:
:
{{{2}}}
Google.
. .
|200x200px]]
Argument

.
:
The integer value can be always represented by the given floating point type.
Google.
. .

.

(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)
,
() []

Web Proxy Viewer  |  New URL  |  Original Page