mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-01 05:10:41 +00:00
InputDouble disallows inf and nan input #7096
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#7096
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version/Branch of Dear ImGui:
Version:
64b1e448d2Branch: docking
My Issue/Question:
InputDouble()does not allowinfornanbe input, despite these being recognized bysscanf()(see https://en.cppreference.com/w/cpp/string/byte/strtof) and output byprintf(). This means an infinity/NaN value can be displayed, but not set. This is caused byImGuiInputTextFlags_CharsScientificnot allowing these characters:ocornut/imgui@d72e1563d4/imgui_widgets.cpp (L3985C9-L3987C27)A workaround is to use
InputScalar()and not settingImGuiInputTextFlags_CharsScientific.Standalone, minimal, complete and verifiable example: