• ## Leetcode-172-factorial zero

Time：2021-12-1

Factorial zero Title Description: given an integer n, return n! The number of zeros in the mantissa of the result. See leetcode’s official website for an example. Source: leetcodeLink: https://leetcode-cn.com/probl…The copyright belongs to Lingkou network. For commercial reprint, please contact the official authorization, and for non-commercial reprint, please indicate the source. Solution 1: count the […]

• ## [front end algorithm] zero after factorization, twice traversal

Time：2021-6-6

Given an integer n, return n! The number of zeros in the result mantissa. Example 1: Input: 3 Output: 0 Explanation: 3= 6, there is no zero in the mantissa. Example 2: Input: 5 Output: 1 Explanation: 5= 120, one zero in the mantissa Note: the time complexity of your algorithm should be o (log […]

• ## Basic part: java basic types

Time：2021-1-8

1: Several basic types of Java keyword type Bits (8 bits, 1 byte) Value range (representing range) byte integer 8 -2^7 ~ 2^7-1 short integer 16 -2^15 ~ 2^15-1 int integer 32 -2^31 ~ 2^31-1 long integer 64 -2^63 ~ 2^63-1 float Floating point number 32 3.402823e+38 ~ 1.401298e-45 double Floating point number 64 1.797693e+308~ […]

• ## Floating point accuracy error

Time：2020-12-25

When I first came into contact with programming, I liked to ask the following questions for small interview questions How do 1 ‘floating point numbers compare with zeros? How to convert a 2 ‘floating point number to an integer? Then after seven or eight years, this kind of problem should rarely appear in the interview. […]

• ## Floating point correlation

Time：2020-10-19

Read some IEEE 754 implementation of floating-point arithmetic related articles IEEE 754 (IEEE 754-2019) Floating-point arithmetic Significand JavaScript floating point number trap and solution Basic field: on floating point numbers In depth analysis of floating point numbers What is the difference between quiet NaN and signaling NaN? Why is the most secure integer in JavaScript […]

• ## Java Foundation (1) eight basic data types

Time：2020-10-6

Since the release of Java, the basic data types have been part of the Java languagebyte, short, int, long, char, float, double, boolean. Among them: Integer: byte, short, int, long Character type: char Float, double Boolean: Boolean Before we introduce it in detail, let’s talk about it first. The smallest calculation unit in Java isbyte, […]

• ## Basic part: java basic data type

Time：2020-8-28

1: The size of several basic data types in Java keyword type Bits (8 bits, 1 byte) Value range (indicated range) byte integer 8 -2^7 ~ 2^7-1 short integer 16 -2^15 ~ 2^15-1 int integer 32 -2^31 ~ 2^31-1 long integer 64 -2^63 ~ 2^63-1 float Floating point number 32 3.402823e+38 ~ 1.401298e-45 double Floating […]

• ## I have been working for two years, but I still don’t know how to convert floating-point number to binary number?

Time：2020-5-21

Come on, sit down and talk Previously, in the previous article “the boss said: who wants to use double to define the amount of goods, just pack up the things and go”, he had a heartbreaking chat: Dealing with things likeOrder transaction、Currency calculation, andCommodity amountBe careful with floating point numbers（double/float）To define variables, otherwise you may […]

• ## [3-minute skill get] javascript floating-point precision processing

Time：2020-4-25

First look at the output of the following calculation: 0.1 + 0.2 Obviously 0.3. But in JavaScript, what is the result? 0.30000000000000004 This is an accuracy problem that is easy to appear in the numerical calculation of the program language, as shown in the figure below, the amount on the bill page is displayed. Causes of problems […]

• ## [20191013] Oracle number type storage conversion script.txt

Time：2020-4-14

[20191013] Oracle number type storage conversion script.txt –//Test to see if you can use the output of BC obase = 100 to solve the problem. In addition, before the script forgot to consider the rounding of mantissa.–//Maybe programming is like this. There are always some details that are not taken into account–//The code is num2raw_5.sh […]