StackOverflow Questions for Tag: floor-division

qwr
qwr

Reputation: 10974

Is a > c / b a safer equivalent (but avoiding overflow) version of a * b > c for positive integer division?

Score: 4

Views: 248

Answers: 2

Read More
Bryant
Bryant

Reputation: 3601

Python Floor Division Seems incorrect?

Score: 0

Views: 107

Answers: 2

Read More
ideasman42
ideasman42

Reputation: 48198

Fast floor of a signed integer division in C / C++

Score: 11

Views: 5978

Answers: 6

Read More
Ray
Ray

Reputation: 192356

`/` vs `//` for division in Python

Score: 592

Views: 743709

Answers: 16

Read More
Jonatan Öström
Jonatan Öström

Reputation: 2629

Why is floor division inconsistent with division follow by floor, e.g. 1//0.2 = 4.0

Score: 1

Views: 43

Answers: 0

Read More
Virtual Tutor
Virtual Tutor

Reputation: 17

Why is timer yielding same integer regardless of time?

Score: 0

Views: 39

Answers: 1

Read More
Tomy
Tomy

Reputation: 133

Confusion of a code snippet in a interview

Score: 3

Views: 362

Answers: 3

Read More

Python how to convert total teaspoons to tablespoons, ounces, cups, and pints using modulus and floor division

Score: -1

Views: 267

Answers: 2

Read More
shahanneda
shahanneda

Reputation: 311

Difference in Python 3 between `int( x / y )` and `x // y`?

Score: 1

Views: 560

Answers: 2

Read More
user3351676
user3351676

Reputation: 91

What do operations n % 2 == 1 and n //= 2 do in Python?

Score: 2

Views: 24258

Answers: 1

Read More
user10654536
user10654536

Reputation:

Java - How to do floor division?

Score: 20

Views: 69915

Answers: 4

Read More
Gaurav Dhir
Gaurav Dhir

Reputation: 27

Issue related to double precision floating point division in C++

Score: 1

Views: 231

Answers: 2

Read More
tgonzalez89
tgonzalez89

Reputation: 731

How to divide a 128-bit dividend by a 64-bit divisor, where the dividend's bits are all 1's, and where I only need the 64 LSBs of the quotient?

Score: 4

Views: 1023

Answers: 2

Read More
cj wyett
cj wyett

Reputation: 152

What is the syntax for floor division in Julia?

Score: 1

Views: 3056

Answers: 3

Read More
Yuva
Yuva

Reputation: 171

How to get x axis and y axis values of particular image part in flutter

Score: 1

Views: 662

Answers: 1

Read More
rohitt
rohitt

Reputation: 1225

Why is fractional part not discarded in python in some cases

Score: -1

Views: 116

Answers: 1

Read More
rajrish5541f
rajrish5541f

Reputation: 29

In python, 12//5 is 2 then why -12//5 is not -2?

Score: 0

Views: 37

Answers: 0

Read More
Attiq Rahman
Attiq Rahman

Reputation: 173

C# and Python result difference - basic Math

Score: 0

Views: 216

Answers: 1

Read More
pierce314159
pierce314159

Reputation: 21

Why does numpy floor_divide with infinity differ from true_divide

Score: 2

Views: 111

Answers: 0

Read More
Rajitha Amarasinghe
Rajitha Amarasinghe

Reputation: 9

What is the rule behind minus (-) number devide by (//) integer division

Score: 1

Views: 31

Answers: 0

Read More
PreviousPage 1Next