Actually, I found the easiest way is to use double
for the return values and parameters of my WinRT component.
This is what I have in my C# Class Library
public static double Round(double value, int digits)
{
// do stuff
}
This is the code of a C# Windows Runtime Portable Class Library I created as a wrapper to be called from my JavaScript code
public static double Round(double val, int digits)
{
return MyCSharpClassLib.Class.Round(val, digits);
}
And from my JavaScript project, this is what I call
var round = WindowsRuntimeWrapper.Class1.round(3.1415926549, 3);
And it works just fine!