[New-bugs-announce] [issue43966] F String bugs with numpy.float32

GPH report at bugs.python.org
Wed Apr 28 08:44:15 EDT 2021

New submission from GPH <gphsmail at 163.com>:

When using F String with numpy.float32 variable, the output is wrong!

Example code:

import numpy as np

floatNumber = 0.00123

npFloatNumber = np.float32(0.00123)

The output is:


As we can see, the value of np.float32 is wrong!

messages: 392192
nosy: PingHGao
priority: normal
severity: normal
status: open
title: F String bugs with numpy.float32
type: behavior
versions: Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list