nasa/fprime-gds

I64 and U64

Closed this issue · 2 comments

F´ Version all
Affected Component

Problem Description

The GDS is incapable of handling (precisely) U64 and I64 types. JavaScript numbers are floating point numbers of double precisions, meaning they are limited to 53bits of precise integer representation.

How to Reproduce

  1. Define telemetry, command, or event data of U64 or I64 type
  2. Attempt to input or output the data
  3. Observe loss in precsision

Expected Behavior

64 bit types should be handled exactly.

Note: a solution is to use a "big number" for representing the data.

Only affects command history, not the sending side.