Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/Valdi
/ toFloat
Method
toFloat
valdi_core/src/valdi_core/cpp/Utils/Value.cpp:698–700 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
696
}
697
698
float Value::toFloat() const noexcept {
699
return static_cast<float>(toDouble());
700
}
701
702
int32_t Value::toInt() const noexcept {
703
switch (getType()) {
Callers
15
getFloat
Method · 0.80
getFloat
Method · 0.80
rtlChunkBitmapLeftUsesChunkOriginWithoutDoubleApplyingLineLeft
Method · 0.80
ltrRunInRtlParagraphKeepsChunkOriginAtPrimaryHorizontal
Method · 0.80
resolveLayoutOriginDoesNotDoubleApplyScrollOffsets
Method · 0.80
resolveLayoutOriginDoesNotApplyHorizontalGravityOffset
Method · 0.80
getFloat
Method · 0.80
getFloat
Method · 0.80
onApply
Method · 0.80
getFromCache
Function · 0.80
measureExternal
Method · 0.80
updateScrollAttributeValueIfNeeded
Method · 0.80
Calls
no outgoing calls
Tested by
7
getFloat
Method · 0.64
getFloat
Method · 0.64
rtlChunkBitmapLeftUsesChunkOriginWithoutDoubleApplyingLineLeft
Method · 0.64
ltrRunInRtlParagraphKeepsChunkOriginAtPrimaryHorizontal
Method · 0.64
resolveLayoutOriginDoesNotDoubleApplyScrollOffsets
Method · 0.64
resolveLayoutOriginDoesNotApplyHorizontalGravityOffset
Method · 0.64
getFloat
Method · 0.64