Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/SSpinBox
Description
Rounds the submitted value to the correct value if it's an integer. For int64, not all values can be represented by a double. We can only round until we reach that limit. This function should only be used when we drag the value. We accept that we can't drag huge numbers.
| Name | RoundIfIntegerValue |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SSpinBox.h |
| Include Path | #include "Widgets/Input/SSpinBox.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Widgets/Input/SSpinBox.cpp |
NumericType RoundIfIntegerValue
(
double ValueToRound
) const