D language Property can replace Traits

xiaoxiao2021-03-06  41

The following are some of the float type property .init initializer (NaN) .sizeof size in bytes (equivalent to C's sizeof (type)) .alignof alignment size .infinity infinity value .nan NaN value .dig number of decimal digits of precision .epsilon smallest increment .mant_dig number of bits in mantissa .max_10_exp maximum exponent as power of 10 .max_exp maximum exponent as power of 2 .min_10_exp minimum exponent as power of 10 .min_exp minimum exponent as power of 2 .max largest representable value that's not infinity .min Smallst Reperestable Value That's Not 0 Using Bit Fun (Float R) {RETURN R == Float.max;}

转载请注明原文地址:https://www.9cbs.com/read-68812.html

New Post(0)