divi模板下载

数学类静态double IEEEremainder(double divi,double divisor) (Math Class static double IEEEremainder(double divi , double divisor))

  • This method is available in java.lang package.

    此方法在java.lang包中可用。

  • This method is used to return the calculated remainder on the given two parameters.

    此方法用于返回给定两个参数上的计算余数。

  • This method is followed by IEEE 754 Standard.

    IEEE 754标准遵循此方法。

  • This is a static method so it is accessible with the class name too.

    这是一个静态方法,因此也可以使用类名进行访问。

  • This method accepts two parameters (one is dividend and other is divisor), and it returns the two numbers (one is quotient and other is remainder).

    此方法接受两个参数(一个是除数,另一个是除数),并返回两个数字(一个是商,另一个是余数)。

  • Example: Let suppose if the dividend is fully divisible by divisor then the value of the remainder will be 0 and in that case, the resultant value sign will be the same as the sign of the first argument.

    示例:假设如果除数可被除数完全除,则余数的值将为0,在这种情况下,结果值的符号将与第一个参数的符号相同。

  • The return type of this method is double that means it returns the remainder of the given arguments.

    此方法的返回类型为double,这意味着它将返回给定参数的其余部分。

  • In this method, we pass two parameters as arguments, where, the first argument represents the dividend and the second argument represents the divisor.

    在此方法中,我们将两个参数作为参数传递,其中,第一个参数表示除数,第二个参数表示除数。

  • This method does not throw any exception.

    此方法不会引发任何异常。

Syntax:

句法:

    public static double IEEEremainder(double divi, double divisor){
}

Parameter(s):

参数:

  • divi – the value of dividend.

    股息 –股息价值。

  • divisor – the value of divisor.

    除数 – 除数的值。

Return value:

返回值:

The return type of this method is double, it returns the remainder.

此方法的返回类型为double ,它返回余数。

Note:

注意:

  • If we pass any argument "NaN", it returns the "NaN".

    如果我们传递任何参数“ NaN”,它将返回“ NaN”。

  • If we pass any argument as an infinity, it returns the "NaN".

    如果我们将任何参数传递为无穷大,它将返回“ NaN”。

  • If we pass any argument as 0 (-0 or 0), it returns the "NaN".

    如果我们将任何参数传递为0(-0或0),它将返回“ NaN”。

  • If we pass a finite value as a first argument and an infinite value as second argument, it returns the first argument.

    如果我们将一个有限值作为第一个参数传递而将一个无限值作为第二个参数传递,它将返回第一个参数。

Java程序演示IEEEremainder(double divi,double divisor)方法的示例 (Java program to demonstrate example of IEEEremainder(double divi , double divisor) method)

// Java program to demonstrate the example of
// IEEEremainder(double divi, double divisor) method of Math Class
public class IEEEremainderMethod {public static void main(String[] args) {// variables declarations
Double d1 = 7.0 / 0.0;
Double d2 = 10.0;
Double d3 = 5.0;
Double d4 = 0.0;
Double d5 = -0.0;
// displaying values
System.out.println("d1: " + d1);
System.out.println("d2: " + d2);
System.out.println("d3: " + d3);
System.out.println("d4: " + d4);
System.out.println("d5: " + d5);
// Here , we will get (NaN) because we are passing
// first parameter whose value is (infinity)
System.out.println("Math.IEEEremainder (d1,d2): " + Math.IEEEremainder(d1, d2));
// Here , we will get (NaN) because we are passing
// second parameter whose value is (positive or negative 0)
System.out.println("Math.IEEEremainder (d2,d4): " + Math.IEEEremainder(d2, d4));
// Here , we will get (first argument) because we are passing
// finite parameter  as first argument whose value is (10.0) and
// passing infinity as second argument in the method.
System.out.println("Math.IEEEremainder (d2,d1): " + Math.IEEEremainder(d2, d1));
// Here , we will get (0.0) because we are passing
// parameter whose value is (10.0,5.0)
System.out.println("Math.IEEEremainder (d2,d3): " + Math.IEEEremainder(d2, d3));
}
}

Output

输出量

E:\Programs>javac HypotMethod.java
E:\Programs>java HypotMethod
d1: Infinity
d2: 10.0
d3: 5.0
d4: 0.0
d5: -0.0
Math.IEEEremainder (d1,d2): NaN
Math.IEEEremainder (d2,d4): NaN
Math.IEEEremainder (d2,d1): 10.0
Math.IEEEremainder (d2,d3): 0.0

翻译自: https://www.includehelp.com/java/math-class-static-double-ieeeremainder-double-divi-double-divisor-with-example.aspx

divi模板下载

divi模板下载_Java Math类静态double IEEEremainder(double divi,double divisor)的示例相关推荐

  1. java math 类_Java Math类静态长轮(double d)示例

    java math 类 数学课静态长回合(双D) (Math Class static long round(double d) ) This method is available in java. ...

  2. java math 类_Java Math类静态双层(double d)示例

    java math 类 数学班静态双层(双D) (Math Class static double floor(double d)) This method is available in java. ...

  3. java 静态线程_Java线程类静态本机void yield()方法(带示例)

    线程类静态本机无效 yield()软件包java.lang.Thread.yield()中提供了此方法. yield()方法表示停止当前正在执行的线程,并为其他优先级相同的等待线程提供机会. 如果没有 ...

  4. divi模板下载_适用于任何WordPress主题的Divi Builder插件

    divi模板下载 As a WordPress user and developer, I can definitely say that I am into frameworks. I like t ...

  5. divi模板下载_Divi WordPress主题:更改博客方式

    divi模板下载 If you aren't familiar with Divi, it's a WordPress theme I covered a while back. The Divi W ...

  6. divi模板下载_Divi:拖放式WordPress主题

    divi模板下载 Not everyone who uses WordPress is a web designer or developer. In fact, understanding how ...

  7. divi模板下载_优雅主题的Divi 3.0是力量与简约的结合

    divi模板下载 This article was sponsored by Elegant Themes. Thank you for supporting the sponsors who mak ...

  8. divi模板下载_赞助商:Divi 3.0

    divi模板下载 Divi 3.0和所见即所得的未来已经到来. 立即测试Divi用于WordPress的新可视页面构建器,并找出为什么它是构建美观网站的最佳和最简便方法. 现在,您可以在实际网站上构建 ...

  9. java math.cos_Java Math类静态double cos(double d)示例

    java math.cos 数学类静态双cos(double d) (Math Class static double cos(double d)) This method is available ...

最新文章

  1. 三层交换机环境的上网行为管理方案
  2. HTML Add-on HTML 查看器/编辑器查看器
  3. 软件测试白皮书-等价类
  4. 如何查看服务器当前的负载信息
  5. 测试linux硬盘读写速度
  6. C# 判断是否是蜘蛛IP地址
  7. 2021年电赛F题智能送药小车(国二)开源分享
  8. 在线java编译器 api_代码在线编译器(上)- 编辑及编译
  9. 华为交换机ntp自动校时配置
  10. Unity UGUI-Canvas
  11. javascript 中文转拼音代码
  12. 易基因技术推介|m1A RNA甲基化测序(MeRIP-seq/m1A-seq)
  13. QML地图简介(1)
  14. 权值初始化 - Xavier和MSRA方法
  15. 如何运用计算机辅助英语教学,谈英语计算机辅助教学 (中学英语教学论文)
  16. C/C++程序员求职面试指导
  17. 从基础到进阶,一文详解RocketMQ事务消息,看完不会跪键盘
  18. Xcode5 开发入门-环境及初体验
  19. jquery ui放大缩小_jQuery UI可调整大小 – 操作方向
  20. [1196]Android逆向工具【反射大师】脱壳实战

热门文章

  1. python文件输入符_python读入文件时加r的作用?
  2. 计算机休眠怎么唤醒,电脑休眠后,就无法唤醒了?怎么办?快速教你解决这个问题...
  3. java面试手写单链表_(转)面试大总结之一:Java搞定面试中的链表题目
  4. 广度优先搜索练习之神奇的电梯
  5. UVA - 489 ​​​​​​​Hangman Judge
  6. MySQL 使用Node.js异步查询结果为undefined的简单处理办法
  7. 你真的了解iOS怎么取属性的吗?
  8. informatica中元数据管理
  9. CentOS 6.4下操作kdump执行过程
  10. PL/SQL配置文件解析