Results for floating-accuracy

December 7th, 2023

Why is 1.0 / 3.0 * 3.0 exactly 1 in IEEE floating point representation?

According to this question I know that 1.0 / 3.0 can not be precisely represented in IEEE floating point format, but instead is rounded to a IEEE floa...

December 4th, 2023

Can the result of bitwise SIMD logical operations on packed floating points be corrupted by FTZ/DAZ or -ffinite-math-only?

Recall that the exponent mask for a 32 bit float is 0x7F80'0000, and a number is a denormal if and only if that mask consists of all zeroes, and there...

November 29th, 2023

The rounding mode of floating point numbers in C language When the mantissa of a floating point number exceeds 23 bits how to round the excess part

In the calculation 123456789 (1 110 1011 0111 1001 1010 0010 101) +20 ( 10 100) the result in C is 123456816 (1 110 ...

November 19th, 2023

Nextion: Calculate inverse tan (arctan) without trig functions or floating point

I am programming an interface on this Nextion display. Specifically, I am trying to program a digital dial that rotates around a centre point. These s...

December 10th, 2023

How can I get the floor of a large floating-point number at compile-time?

I'm writing a compile-time math library using c++20, I already have floor/ceiling/abs/etc. but the method I am currently using to get the floor of a f...

November 2nd, 2023

How can I use commas inside a csv column to separate multiple floating point values?

I have a question that is closely related to this question here: How to convert .wav files into a Pandas DataFrame in order to feed it to a neural net...

November 3rd, 2023

A weird problem in Forth when printing out the data stack and floating-point stack

I've started exploring Forth using Gforth on a Kali Linux computer. Thinking about stacks I always imagine the picture of the HP calculator stacks lik...

October 25th, 2023

Creating a floating anti-aliased text window in Delphi

I want to create a floating (top level) window that shows only Anti-Aliased text (no other window elements). I am trying to draw the text using GDI+ t...

September 27th, 2023

Long stringstream LibXML string convert to floating point numbers adds unwanted digits

How can I modify the below code et cetera to produce the desired outcome? I have a string with over 400 floating point numbers that I have been trying...

September 25th, 2023

Input Form Floating Label does not work, when "required" is removed

I need help with this one. it just doesnt seem to work right and I cant really find the mistake, since I just started coding a few months ago ="form">...

December 10th, 2023

How to compute mean of two floating-point numbers?

What is the most accurate way to compute mean of two numbers in floating-point arithmetic? Let's consider the most common double precision 64-bit numb...

September 21st, 2023

When does using floating point operations to calculate ceiling-integer-log2 fail?

I'm curious what the first input is which differentiates these two functions: from math import * def ilog2_ceil_alt(i: int) -> int: # DO NOT USE ...

September 13th, 2023

How to add a floating card beside the start or end point of the route with Google Maps Compose?

So I have created a marker and route with Google Maps which is super easy in Compose: GoogleMap( modifier = Modifier.fillMaxSize(), cameraPosi...

September 5th, 2023

How can you prove that multiplication with floating-point numbers creates more inaccuracy than addition/subtraction?

I just started reading about the inaccuracies with writing decimals in binary. Then I was given this challenge: You are given two functions which tak...

September 7th, 2023

Is it possible to implement error-free floating-point arithmetic based on ARM pseudocode using finite precision floating-point arithmetic?

Background: usually floating-point arithmetic is implemented using integer arithmetic (for example, Berkeley SoftFloat). Per ARM pseudocode [1] floati...

September 8th, 2023

Is it possible to implement IEEE 754 conforming floating-point arithmetic based on ARM pseudocode using finite precision floating-point arithmetic?

Background: usually floating-point arithmetic is implemented using integer arithmetic (for example, Berkeley SoftFloat). Per ARM pseudocode [1] floati...

September 5th, 2023

Floating point rounding error when computing the power of a double-float number

I want to develop a Common Lisp solution to Leetcode problem 50. "Pow(x, n)" which asks: "Implement pow(x, n), which calculates x raised to the power...

August 31st, 2023

C++: Which floating-point operations, if any, are guaranteed by the standard to be non-throwing?

In C++20 (or later), are there any operations involving floating point numbers that are guaranteed by the standard to never throw? What about assignm...

August 31st, 2023

Floating text field below subreport not stretching to band height

I'm using JasperReports 6.0.0 to create a report which displays a table with 2 columns. The first column is a text field, the second column is a subre...

September 20th, 2023

I get error ".form-floating>~label" in ng build

I try to run command "ng build" in my Angular app next i get: ✔ Browser application bundle generation complete. ✔ Copying assets complete. ⠋ Generatin...

September 25th, 2023

How to fill a Flutter Floating Action Button with an image?

Right now I have an image on my Floating Action Bar (FAB) but it looks like it's on top of it. I would like it to fill the entire inside / shape of th...

November 3rd, 2023

How can I convert four bytes of hexadecimal into a floating point number within Excel

I have copied a stream of hexadecimal data from a Wireshark capture into Excel as a text value with no spaces. 04000000ffffffff2b010000c90000000000000...

September 10th, 2023

Problem with opening floating window in i3wm: alacritty

I am using i3 in arch and I have switched to alacritty as a terminal. However, alacritty will not open as a floating window. This is my code in i3 con...

November 18th, 2023

How to make a floating island in unity?

I am making a game with islands, I am using unity terrain for that. The problem is, I don't want regular I want floating ones. The problem with Unity ...

November 26th, 2023

Where are the fixed width floating types?

What are the C standard fixed width floating point types and where are they defined? From MISRA-C:2004, Rule 6.3: typedefs that indicate size and sign...

- 25881
How do I undo the most recent local commits in Git?

- 11618
How can I remove a specific item from an array in JavaScript?

- 20343
How do I delete a Git branch locally and remotely?

- 7387
How can I find all files containing a specific text (string) on Linux?

- 7330
How to find all files containing specific text (string) on Linux?

- 7611
How do I revert a Git repository to a previous commit?

- 2671
How do I create an HTML button that acts like a link?

- 8481
How do I check out a remote Git branch?