here is an example.
I have a variable named SubjectNr.
Entries are like this:
I want a new variable called ID which has the following values:
I don't want any decimals.
here's what I did:
I thought f3.0 meant: room for 3 numbers, 0 behind the comma.
String ID_a (a3).
compute ID_a = substr(Subjectnr,14,3).
compute ID = number(ID_a,f3.0).
However, this syntax gives me the following result:
How do I get rid of these annoying decimal points?