Tag:number

  • Digital amount to Chinese traditional capital

    Time:2021-10-27

    Well, I’m writing this. This is my mood. You can test here。 Digital amount to Chinese traditional capital: if (!function_exists(‘rmb_capital’)) { /** *Amount in Chinese words * * @param mixed $amount * @return string */ function rmb_capital($amount) { $capitalNumbers = [ ‘zero’, ‘one’, ‘two’, ‘three’, ‘four’, ‘five’, ‘six’, ‘seven’, ‘eight’, ‘nine’, ]; $integerunits = [”, […]

  • Manual golang basic data structure and algorithm insertion sorting

    Time:2021-10-27

    origin Recently read < < my first algorithm book > > ([Japan] Ishida Baohui; Miyazaki Xiuyi)This series of notes is intended to use golang exercises Insert sort Insertion sort is an algorithm to sort data from the left end of the sequence. In the sorting process, the data on the left is returned one after […]

  • Online mobile phone number VCF batch import tool

    Time:2021-10-27

    Online mobile phone number VCF batch import tool Online mobile phone number VCF batch import tool This tool can generate the phone number list into VCF format and quickly import it into the mobile phone address book. Please directly copy the phone and name columns from excel, paste and click generate. The first column is […]

  • Find the number of daffodils between 100-999

    Time:2021-10-26

    The number of daffodils, that is, the cubic sum of a three digit number, ten and one hundred three digits is equal to the three digits. 1 from math import pow 2 3 if __name__ == “__main__”: 4 5 l = list() 6 for x in range(100, 1000): 7 x1, x2, x3 = str(x) 8 […]

  • PHP handles floating point precision operations, digital processing, etc

    Time:2021-10-24

    preface 1. When PHP floating-point numbers are calculated, slight carelessness will lead to deviation, especially in financial industry, E-Commerce orders and mall projects. 2. The precision of floating point number is limited. Although depending on the system, PHP usually uses IEEE 754 double precision format, the maximum relative error due to rounding is 1.11e-16. Non […]

  • Algorithm (6) – differential array

    Time:2021-10-23

    Differential array Problem background If you are given an array containing 50 million elements, and then there will be frequent interval modification operations, what is frequent interval modification operations? For example, add 1 to each number from the first number to the 10th million, and this operation is frequent. What should you do now? It’s […]

  • Online 2-36 arbitrary binary conversion tool

    Time:2021-10-23

    Online 2-36 arbitrary binary conversion tool Online 2-36 arbitrary binary conversion tool This tool supports the conversion of numbers from any hexadecimal in 2-36 hexadecimal to each other. It only supports integer and pure client real-time calculation. https://tooltt.com/hex/

  • A digital factory should be built to reduce the order cycle by one third

    Time:2021-10-23

    Introduction:Based on the open ability of low code platform, fidelity launched a set of digital factory. This digital factory helps them shorten the production cycle from 60 days to 40 days, directly improves the delivery capacity and performance ability of fidelity to international customers, and enhances the competitive strength of the enterprise. Zhejiang fudeli Wood […]

  • Domestic database voting, come and support the best domestic database in your mind

    Time:2021-10-23

    This month, ink Sky Wheel released the latest database real-time ranking list and added voting function. In this ranking list, there are not only well-known foreign databases such as Oracle, MySQL and SQL server, but also domestic databases such as DM, gaussdb and tidb. The ranking list calculates the score and popularity of the database […]

  • Multiple operations for each number in the python square list

    Time:2021-10-18

    map map(function,iterable) x = [1,2,3,4,5] def square(num): return num*num print(list(map(square,x))) #output:[1, 4, 9, 16, 25] lambda lambda x: x = [1,2,3,4,5] print(list(map(lambda num:num*num, x))) #output:[1, 4, 9, 16, 25] list comprehensions [funtion for item in iterable] print([ num*num for num in [1,2,3,4,5]]) #output:[1, 4, 9, 16, 25] Supplement: several methods of finding the square root […]

  • [C + + Primer Plus] answers to programming exercises – Chapter 12

    Time:2021-10-12

    1 // chapter12_1_cow.h 2 3 4 #ifndef LEARN_CPP_CHAPTER12_1_COW_H 5 #define LEARN_CPP_CHAPTER12_1_COW_H 6 7 class Cow { 8 private: 9 char name_[20]; 10 char * hobby_; 11 double weight_; 12 public: 13 Cow(); 14 Cow(const char * name, const char * hobby, double weight); 15 Cow(const Cow & c); 16 ~Cow(); 17 Cow & operator=(const Cow […]

  • An example of finding the square of numbers in Python Programming

    Time:2021-10-10

    Problem Description: Find the square of the input number. If the square operation is less than 100, exit. Source code: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #!/usr/bin/python # -*- coding: UTF-8 -*-   TRUE = 1 FALSE = 0 def SQ(x):   return x * […]