Article from the year 2023

Floating point number in JavaScript

JavaScript’s Number type, which is essentially IEEE 754 basic 64-bit binary floating-point, has 53-bit significands. 52 bits are encoded in the “trailing significand” field. The leading bit is encoded via the exponent field (an exponent field of 1-2046 means the leading bit is one, an exponent field of 0 means the leading bit is zero, and an exponent field of 2047 is used for infinity or NaN).

String Operations in Python

This tutorial gives an introduction to string operations in Python: Starting with joining strings, determining the length and using the index operator to access individual characters, we also show how to iterate over strings, searching and comparing strings and briefly explain the standard methods for strings in Python.

Learning Three.js – the JavaScript 3D Library for WebGL - Second Edition

Learning Three.js provides a thorough guide to creating 3D graphics with JavaScript and Three.js. It covers key techniques such as adding lighting, shadows, and materials, as well as loading, animating, and customizing 3D models. Each topic is supported by clear examples that can be tailored to fit a wide range of projects. Designed for JavaScript developers ready to explore 3D programming, this book assumes basic knowledge of JavaScript and HTML, requiring no background in advanced math or WebGL.

Learning Three.js – the JavaScript 3D Library for WebGL - Second Edition

Data Structures in Python

In this article, we'll take a closer look at the four built-in data structures in Python: lists, tuples, dictionaries, and sets. Each of these data structures has its own distinct characteristics and use cases, and you'll learn how to create and perform basic operations on each of them.