In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "what the javascript residual function is", so the editor summarizes the following, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what is the javascript residual function" article.
Javascript has no remainder function. In javascript, the remainder operator is implemented using the modular operator "%". The syntax is "numeric 1% numeric 2", and the return value is the remainder; the "%" modular operator operates mainly on integers, but also applies to floating-point numbers, such as "3.1% 2.3".
The operating environment of this tutorial: windows7 system, javascript1.8.5 version, Dell G3 computer.
There is no remainder function in javascript, but the modular operator "%" can be used to implement the remainder operation.
In javascript, the modular operator "%", also known as the remainder operator, can be divided and get the remainder.
Syntax:
Numerical value 1% numerical value 2
Example:
Console.log (5% 2); / / returns the remainder 1
Modular operations mainly operate on integers and are also suitable for floating-point numbers. For example:
Console.log (3.1% 2.3); / / returns the remainder 0.800000000003
The value of the modular operation is consistent with the symbol of the divisor.
Console.log (- 13% 5); / / return remainder-3console.log (4%-2); / / return remainder 0console.log (- 4% 2); / / return remainder-0
The above is the content of this article on "what is the javascript residual function". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.