The following are some of my issues:
- Can I generate random numbers existing of 6 digits?
using the following
a=r1()*10^f+r1()*10^(f-1)+ r1()*10^(f-2)+ r1()*10^(f-3)+ r1()*10^(f-4)+ r1()*10^(f-5) can generate for example 311737/500 but than
a=1.0*a results in 623.47 where it should be 623.474
=> Why is this?
if some measurement results in 1000dm than this is 100.0m
other answers 100m, 100.00m are incorrect
while randomizing numbers, I fail to find a good way to evaluate this, since the number of significant numbers vary
for example: a=772
from dm to m: 772dm = 77.2m (and incorrect is 77.20 and all situations with more zero’s)
from dm to mm: 772dm = 77200mm (and incorrect is 77200.0 and all situations with more zero’s)
BUT 77.2, 77200 have a different amount of significant numbers
so if I validate between 1 and 5 significant numbers 77.20 will be considered correct
=> how can I evaluate this? Can it be done in 1 question or do I need to create several for each of the situations, for each amount of significant numbers?
Grateful for your help
All the best
Hiram - if it helps we can meet over teams, zoom, discord...