explicit conversion to 32-bit unsigned integer: CUInt, longword

the required type conversion can be carried out as follows:

explicit conversion to 32-bit unsigned integer

Description

( type ) expression

Input


Output

Note: In C like languages the data type size may be different depending on compiler and architecture, we show only one standard look.
compatible programing languages:
C | Visual C++ .NET | C++ | C#

Examples

Example

explicit conversion to 32-bit unsigned integer the possible of use:
xmin = 0; ymax = 4294967295;
uint x=70000;           // x = 70000
uint y = 1025 div 8;  // y = 128
y = (uint)(x * y);      // z = 875043750

CUInt

Description

 CUInt (expr)
Used keywords: cuint

Input


Output

compatible programing languages:
Visual Basic .NET | FreeBASIC

Examples

Visual Basic .NET

explicit conversion to 32-bit unsigned integer the possible of use:
xmin = 0
 ymax = 4294967295
Dim x As uinteger=70000           ' x = 70000
Dim y As uinteger= 1025 \ 8  ' y = 128
y = CUInt((x * y))      ' z = 875043750

longword

Description

 longword (expr)
Used keywords: longword

Input


Output

compatible programing languages:
Object Pascal | Free Pascal

Examples

Object Pascal

explicit conversion to 32-bit unsigned integer the possible of use:
xmin := 0; ymax := 4294967295;
x:=70000;           // x = 70000
y:= 1025 div 8;  // y = 128
y := longword((x * y));      // z = 875043750

you can find it in the following collections: explicit type conversions
explicit conversion to 32-bit unsigned integer in another programming language:
Languages: en hu cz sk