• C# Math.Round的枚举参数


    public enum MidpointRounding

    Fields

    TABLE 1
    AwayFromZero 1

    When a number is halfway between two others, it is rounded toward the nearest number that is away from zero.

    ToEven 0

    When a number is halfway between two others, it is rounded toward the nearest even number.

    ToNegativeInfinity 3

    When a number is halfway between two others, it is rounded toward the result closest to and no greater than the infinitely precise result.

    ToPositiveInfinity 4

    When a number is halfway between two others, it is rounded toward the result closest to and no less than the infinitely precise result.

    ToZero 2

    When a number is halfway between two others, it is rounded toward the result closest to and no greater in magnitude than the infinitely precise result.

  • 相关阅读:
    11111
    JavaScript基础
    CSS使用
    CSS 基本
    前端之HTML
    Python 迭代器和生成器
    Python day11
    Python 函数
    第十七篇:django基础(二)
    第十六篇:django基础
  • 原文地址:https://www.cnblogs.com/dayang12525/p/12807624.html
Copyright © 2020-2023  润新知