I need two functions to get the lists. There is a mode variable as a globe variable of them . The value of mode -1 is integer , 1 one decimal , 2 two decimals , 5 a multiple of 5.
One :
a known list:
'(0 1.44 1.55 1.99 10 10.4 10.8 100.444 100.555)
The function can get a list to following if the mode is -1
'(0 2 2 2 10 11 11 101 101)
The function can get a list to following if the mode is 1
'(0.0 1.5 1.6 2.0 10.0 10.4 10.8 100.5 100.6)
The function can get list to following if the mode is 2
'(0.00 1.44 1.55 1.99 10.00 10.40 10.80 100.50 100.60)
The function can get a list to following if the mode is 5
'(0 5 5 5 10 15 15 105 105)
Another:
a known list:
'(0 1.44 1.55 1.99 10 10.4 10.8 100.444 100.555)
The function can get list to following if the mode is -1
'(0 1 1 1 10 10 10 100 100)
The function can get list to following if the mode is 1
'(0.0 1.4 1.5 1.9 10.0 10.4 10.8 100.4 100.5)
The function can get list to following if the mode is 2
'(0.00 1.44 1.55 1.99 10.00 10.40 10.80 100.44 100.55)
The function can get list to following if the mode is 5
'(0 0 0 0 10 10 10 100 100)
Who can help me?
Thanks in advance!