Navigation
API > API/Runtime > API/Runtime/CorePreciseFP > API/Runtime/CorePreciseFP/VFloat
Description
Ranking function that turns a double into an int64 that defines a total order compatible with the ordering implied for floats, to be precise
a < b => Ranking(a) < Ranking(b) a == b <=> Ranking(a) == Ranking(b)
For Less(a,b), we only have implication in one direction because when a single NaN is involved, the strict "less" ordering relationship is partial. In the total order implied by Ranking, NaN compares larger than all other floats. Unlike normal IEEE semantics, NaNs compare equal to each other in our ordering, so for Equal we have full equivalence.
Ranking can be used directly or as a key for sorted maps and hashes.
| Name | Ranking |
| Type | function |
| Header File | /Engine/Source/Runtime/CorePreciseFP/Public/VerseVM/VVMFloat.h |
| Include Path | #include "VerseVM/VVMFloat.h" |
| Source | /Engine/Source/Runtime/CorePreciseFP/Private/VerseVM/VVMFloat.cpp |
int64 Ranking() const