xtd
0.2.0
Loading...
Searching...
No Matches
◆
as< decimal >()
[15/42]
template<>
decimal
xtd::as
<
decimal
>
(
slong
value
)
inline
Casts a type into another type.
Parameters
value
object to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong
value = 42ll;
decimal
result =
as<decimal>
(value);
xtd::decimal
long double decimal
Represents a decimal-precision floating-point number.
Definition
decimal.h:23
xtd::slong
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition
slong.h:27
xtd::as< decimal >
decimal as< decimal >(std::any value)
Casts a type into another type.
Definition
__as_decimal.h:36
xtd
Generated on Sat Sep 14 2024 21:25:16 for xtd by
Gammasoft
. All rights reserved.