MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / ToFloat

Method ToFloat

src/Fraction.cpp:35–37  ·  view source on GitHub ↗

Return this fraction as a float (i.e. 1/2 = 0.5)

Source from the content-addressed store, hash-verified

33
34// Return this fraction as a float (i.e. 1/2 = 0.5)
35float Fraction::ToFloat() {
36 return float(num) / float(den);
37}
38
39// Return this fraction as a double (i.e. 1/2 = 0.5)
40double Fraction::ToDouble() const {

Callers 15

detectObjectsClipMethod · 0.80
stabilizeClipMethod · 0.80
formattedFPSMethod · 0.80
EndMethod · 0.80
apply_keyframesMethod · 0.80
FFmpegReader.cppFile · 0.80
WriteFrameMethod · 0.80
TimelineMethod · 0.80
calculate_timeMethod · 0.80
GetFrameMethod · 0.80
SetJsonValueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected