Floating point restanglar中的浮点数

Floating point restanglar中的浮点数,floating-point,restangular,Floating Point,Restangular,我正在使用restanglar来处理restapi。以下是我在javascript中的调用: callApi: function(doubleOne, doubleTwo, doubleThree, doubleFour) { return Restangular.all('api/test/' + doubleOne+ '/' + doubleTwo+ '/' + doubleThree+ '/' + doubleFour).getList(); }, 这是c#中后端api的

我正在使用restanglar来处理restapi。以下是我在javascript中的调用:

callApi: function(doubleOne, doubleTwo, doubleThree, doubleFour) {
        return Restangular.all('api/test/' + doubleOne+ '/' + doubleTwo+ '/' + doubleThree+ '/' + doubleFour).getList();
},
这是c#中后端api的开始:

[路由(“api/test/{doubleOne}/{doubleTwo}/{doubleThree}/{doubleFour}”)]
公共IList GetTest(双双一、双双二、双双三、双双四)
{
...
}
如果double包含类似于56.9883432569883432的内容,则后端代码中不会出现。如果双精度是“正常”的数字,如56,我会在后端代码中找到


现在我问我使用restanglar是否有限制。真的不可能将restanglar与浮点数一起使用吗?还是我错过了什么

故障不在Restanglar上,原因是web api。 请看:

[Route("api/test/{doubleOne}/{doubleTwo}/{doubleThree}/{doubleFour}")]
public IList<ViewModel> GetTest(double doubleOne, double doubleTwo, double doubleThree, double doubleFour)
   {
      ...
   }