toBytes function

List<int> toBytes(
  1. double value
)

Implementation

List<int> toBytes(double value) {
  final target = (value * 13981).round();
  return [
    (target >> 16) % 0x100,
    (target >> 8) % 0x100,
    target % 0x100,
  ];
}