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

Method ToDouble

src/Fraction.cpp:40–42  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

38
39// Return this fraction as a double (i.e. 1/2 = 0.5)
40double Fraction::ToDouble() const {
41 return double(num) / double(den);
42}
43
44// Return a rounded integer of the frame rate (for example 30000/1001 returns 30 fps)
45int Fraction::ToInt() {

Callers 15

operator*Function · 0.80
operator/Function · 0.80
ResolveMaskHostFpsMethod · 0.80
MapMaskFrameNumberMethod · 0.80
operator<Method · 0.80
operator>Method · 0.80
DisplayInfoMethod · 0.80
OpenMethod · 0.80
PropertiesJSONMethod · 0.80
get_transformMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected