We have created one RO server project it have simple function GetInt64 which returns long value.
Same function we are invoking from JavaScript function and we are receiving wrong long (int64) value.
For more details kindly find attached project.
However please remember that in Java Script integers are accurate up to 15 digits. This means that for example numbers 637261956000000010 and 637261956000000020 are equal for JS and both are represented as 637261956000000000 (while 637261956000000070 will be rounded to 637261956000000100).
So there will be an inevitable loss of precision when these numbers will be deserialized by Remoting SDK. This is a platform limitation so not much can be done about it.
Agree with your comments, But when I test above test case with version(10.0.0.2557) it seems failed.
Value returning from RO server function is 637261956000000000 and received from JavaScript response 2608727074816.