I am writing a signal processing demo in JavaScript. For that, I need to store relatively large vectors of floats. If I do it in a naive way (using the mathjs library):
var vector = math.matrix([-35.545806884765625, -3.1195175647735596, ...]);
it works fine, but the source can easily have megabytes.
Is there a way how represent the float e.g., in base64 encoding, so the source code gets compressed?