RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::Float Class Reference

表示单精度浮点值 More...

Inheritance diagram for System::Float:
System::Generic::Arithmetic< float >

Public Member Functions

 Float (float i=0)
 
 Float (const Float &c)
 
String ToString (LPCTSTR _Format=_T("%f"), intptr_t _Length=16) const
 将单精度浮点值转换为字符串形式 More...
 
- Public Member Functions inherited from System::Generic::Arithmetic< float >
 Arithmetic (const float &t=0)
 
 Arithmetic (const Arithmetic &c)
 
 operator float & ()
 
 operator const float () const
 
Arithmeticoperator= (const float &t)
 
Arithmeticoperator+= (const float &t)
 
Arithmeticoperator-= (const float &t)
 
Arithmeticoperator*= (const float &t)
 
Arithmeticoperator/= (const float &t)
 
const Arithmetic operator+ (const float &t) const
 
const Arithmetic operator- (const float &t) const
 
const Arithmetic operator* (const float &t) const
 
const Arithmetic operator/ (const float &t) const
 
Arithmeticoperator++ ()
 
Arithmetic operator++ (int)
 
Arithmeticoperator-- ()
 
Arithmetic operator-- (int)
 

Static Public Member Functions

static float TryParse (const wchar_t *s)
 将单精度浮点值的字符串表示形式转换为它的等效单精度浮点值 More...
 
static float TryParse (const char *s)
 将单精度浮点值的字符串表示形式转换为它的等效单精度浮点值 More...
 
static float TryParse (const wchar_t *s, wchar_t **_end)
 将单精度浮点值的字符串表示形式转换为它的等效单精度浮点值 More...
 
static float TryParse (const char *s, char **_end)
 将单精度浮点值的字符串表示形式转换为它的等效单精度浮点值 More...
 

Public Attributes

 RLIB_DECLARE_DYNCREATE
 
- Public Attributes inherited from System::Generic::Arithmetic< float >
float m_var
 

Detailed Description

表示单精度浮点值

Member Function Documentation

String System::Float::ToString ( LPCTSTR  _Format = _T("%f"),
intptr_t  _Length = 16 
) const
inline

将单精度浮点值转换为字符串形式

static float System::Float::TryParse ( const wchar_t *  s)
inlinestatic

将单精度浮点值的字符串表示形式转换为它的等效单精度浮点值

static float System::Float::TryParse ( const char *  s)
inlinestatic

将单精度浮点值的字符串表示形式转换为它的等效单精度浮点值

static float System::Float::TryParse ( const wchar_t *  s,
wchar_t **  _end 
)
inlinestatic

将单精度浮点值的字符串表示形式转换为它的等效单精度浮点值

static float System::Float::TryParse ( const char *  s,
char **  _end 
)
inlinestatic

将单精度浮点值的字符串表示形式转换为它的等效单精度浮点值


The documentation for this class was generated from the following file: