Tag:Floating point number

  • Self made regular expression testing tool

    Time:2020-8-4

    According to the international practice, the effect picture should be displayed first Direct code: Regular expression testing tool <span style=”background-color: #f5f5f5; color: #800000;”> dl, dd </span><span style=”background-color: #f5f5f5; color: #000000;”>{</span><span style=”background-color: #f5f5f5; color: #ff0000;”> padding</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”> 0</span><span style=”background-color: #f5f5f5; color: #000000;”>;</span><span style=”background-color: #f5f5f5; color: #ff0000;”> margin</span><span style=”background-color: #f5f5f5; […]

  • Come in and have a look, let you lie down and finish learning JavaScript (2)

    Time:2020-8-1

    JavaScript basic syntax 2 If you want to be an excellent Java Architect, see here → Le byte free open class (Tencent class) If you need more information, please click on the right → this is a road of no return, there is a risk of baldness, please choose carefully! Statements and comments The execution […]

  • Collation of common field types in elasticsearch7. X mapping

    Time:2020-7-14

    1、 Core data type character string:text, keyword Numerical type:long, integer, short, byte, double, float, half_float, scaled_float Boolean:boolean Date type:date, date_nanos Binary:binary Range type:integer_range, float_range, long_range, double_range, date_range 1. String text Field data of type text is segmented, and the string is divided into one term by the word breaker before the inverted index is generated.Fields […]

  • C basic data type performance test

    Time:2020-4-15

    This paper simply tests the multiplication and division performance of fixed-point numbers and built-in floating-point numbers implemented by 16 bit integers and 32-bit integers respectively in C language Cycle 1 0000 0000 * 20 times under release: CPU:7700K/4.2Ghz   The fixed-point number is realized as follows: Fp16: int operation in essence Fp32: long long operation […]

  • A note on some regular expressions

    Time:2020-4-14

    Learn the regular expression excerpt through some examples, JS regular functions match, exec, test, search, replace, split Some matching methods Remove the head and tail //Remove ‘/’ from head and tail input = input.replace(/^\/*|\/*$/g,”); javascript:; 、javascript:void(0) ‘javascript:;’.match(/^(javascript\s*\:|#)/); //[“javascript:”, “javascript:”, index: 0, input: “javascript:;”] matching var str = “access_token=dcb90862-29fb-4b03-93ff-5f0a8f546250; refresh_token=702f4815-a0ff-456c-82ce-24e4d7d619e6; account_uid=1361177947320160506170322436”; str.match(/account_uid=([^\=]+(\;)|(.*))/ig); //=> [“account_uid=1361177947320160506170322436”] Match some […]

  • Floating point precision of JavaScript deep series

    Time:2020-3-20

    Preface Whether 0.1 + 0.2 is equal to 0.3, as a classic interview question, has been widely known. Speaking of the reasons, you can answer that this is caused by the problem of floating-point precision, but also dialectically see that this is not the problem of ECMAScript. Today is the specific reason behind it. Numeric […]

  • CSAPP Experiment 1: bit operation

    Time:2020-3-16

    CSAPP is known as the programmer’s Bible. Although it is translated into Chinese as “in-depth understanding of computer systems”, it is not so “deep”, but it has a wide coverage, and is generally used as a textbook for the introduction course of computer major. I’ve heard that the supporting experiments in the book are very […]

  • JavaScript addition and subtraction crisis – why does this happen?

    Time:2020-3-12

    One directory What’s the difference between a non tossing front end and a salted fish Catalogue| — | |A catalogue||2 foreword||Recurrence of three problems||  3.1 source: IEEE 754 standard||  3.2 recurrence: calculation process||  3.3 extension: Digital Security||IV. problem solving||  4.1 toFixed() ||  4.2 handwritten simple addition, subtraction, multiplication and division||V. ready made framework||6. References| Two […]

  • Java self study – conversion of numbers and strings

    Time:2020-3-11

    Converting numbers to strings and strings to numbers in Java Step 1:Number to string Method 1: use the static method valueof of the string classMethod 2: first type the basic type as an object, then call the toString of the object. package digit; public class TestNumber { public static void main(String[] args) { int i […]

  • Operate (integer, floating-point, string, Boolean, null) data with the self increasing and self decreasing operators in PHP

    Time:2020-2-28

    // environment // // PHP version // PHP 7.0.33-0+deb9u1 (cli) (built: Dec 7 2018 11:36:49) ( NTS ) // Copyright (c) 1997-2017 The PHP Group // Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies // with Zend OPcache v7.0.33-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies // //Vs code information //Version: 1.36.0 //Submitted by: 0f3794b38477eea13fb47fbe15a42798e6129338 //Date: […]

  • Thinking about operating system Chapter 5 more bits and bytes

    Time:2020-2-17

    Chapter 5 more bits and bytes By Allen B. Downey Chapter 5 more bits and bytes Translator: Flying Dragon Protocol: CC by-nc-sa 4.0 5.1 representation of integers You may know that computers represent integers in binary. For positive numbers, the binary representation is straightforward. For example, a decimal 5 means binary is0b101。 For negative numbers, […]

  • Important new features in golang1.13

    Time:2020-1-26

    Index of this article language change Number literal The improvement of cross-border index error reporting Tool chain improvement GOPROXY GOSUMDB GOPRIVATE New features of standard library Judge whether the variable is 0 Innovation in error handling Unwrap Is As Golang1.13 has been released for a month, and this article will list some of its more […]