Arithmetic types - cppreference.com

en.cppreference.com

Tin mới

You are encouraged to create an account and log in; however, it is not mandatory

You are encouraged to log in; however, it is not mandatory [o]

Discussion about the content page [t]

This page is protected. You can view its source [e]

Past revisions of this page [h]

c/compiler support

Variadic function support

Dynamic memory management

Date and time utilities

Input/output support

Localization support

Concurrency support

Technical Specifications

c/language/basic concepts

c/language/statements

c/language/expressions

c/language/initialization

c/language/declarations

c/language/functions

c/language/history

c/language/charset

Translation phases

c/language/punctuators

c/language/identifier

c/language/lifetime

Lookup and name spaces

Objects and alignment

The main() function

Undefined behavior

Memory model and data races

the list of type-related utilities

c/language/conversion

Note that conversion to _Bool(until C23)bool(since C23) does not work the same as conversion to other integer types: (bool)0.5 evaluates to true, whereas (int)0.5 evaluates to 0.

c/language/typedef

(See also type for type system overview and the list of type-related utilities that are provided by the C library.)

c/string/multibyte

arithmetic operators

(See also type for type system overview and the list of type-related utilities that are provided by the C library.)

c/numeric/math/INFINITY

c/numeric/math/nan

c/numeric/math/NAN

c/numeric/math/math errhandling

(See also type for type system overview and the list of type-related utilities that are provided by the C library.)

c/types/limits/FLT EVAL METHOD

c/language/operator assignment

(See also type for type system overview and the list of type-related utilities that are provided by the C library.)

#pragma STDC FP_CONTRACT

(See also type for type system overview and the list of type-related utilities that are provided by the C library.)

the floating-point environment

(See also type for type system overview and the list of type-related utilities that are provided by the C library.)

Limits of floating-point types

(See also type for type system overview and the list of type-related utilities that are provided by the C library.)

Complex floating types

Complex floating types model the mathematical complex number, that is the numbers that can be written as a sum of a real number and a real number multiplied by the imaginary unit: a + bi

Complex floating types

Complex floating types model the mathematical complex number, that is the numbers that can be written as a sum of a real number and a real number multiplied by the imaginary unit: a + bi

c/numeric/complex/cproj

c/numeric/complex/Imaginary I

Complex floating types

Complex floating types model the mathematical complex number, that is the numbers that can be written as a sum of a real number and a real number multiplied by the imaginary unit: a + bi

c/numeric/complex/Complex I