首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::isgreater

Defined in header <cmath>

bool isgreater( float x, float y );

(1)

(since C++11)

bool isgreater( double x, double y );

(2)

(since C++11)

bool isgreater( long double x, long double y );

(3)

(since C++11)

bool isgreater( Arithmetic x, Arithmetic y );

(4)

(since C++11)

1-3%29确定浮点数x大于浮点数%28。y%29,不设置浮点异常。

4%29一组重载或函数模板,用于%281-3%29中未涵盖的所有算术类型参数组合。如果有任何争论积分型,它被铸造成double...

参数

x

-

floating point value

y

-

floating point value

返回值

true如果x > y,,,false否则。

注记

内建operator>对于浮点数可以设置FE_INVALID如果其中一个或两个论点都是NaN。这个函数是一个“安静”的版本。operator>...

另见

greater

function object implementing x > y (class template)

isless (C++11)

checks if the first floating-point argument is less than the second (function)

c更大的文件

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券