MCPcopy Create free account
hub / github.com/charto/nbind / toInt

Method toInt

test/PrimitiveMethods.cc:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56 template <typename T>
57 static T toInt(double x) {
58 T y = x;
59
60 return((y < 0) ? y + 1 : y - 1);
61 }
62
63 template <typename T>
64 static double toFloat(T x) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected