Dear all, I have been writing a correction factor lookup table for a transducer which is not linear.
For example the query is as below-
Tags Value stored in Tiny DB
1 0
10 1
100 2
200 3
200 4
400 5
suppose if the tag is not present then query should retrieve the previous tag stored value
if search is say 140, then the 2 (for tag 100) should be retrieved.
and for 160(for tag 200), then 3 should be retrieved.
Basically I need to find the closest match in the Tiny DB, if tag not found