how to get length of numbers in column

halaalrobassy
halaalrobassy New Altair Community Member
edited November 2024 in Community Q&A
i have column that has student number and i want first to get the length of column for example : student with 11 numbers digits and others with 12 number digits . then i want to extract students with 11 length digits from this dataset. second split this numbers into three divisions..
can you tell me which processes can do this
thank you
Tagged:

Best Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Answer ✓
    Hi,
    maybe generate attributes with
    length(str([attribute]))
    ?

    Best,
    Martin
  • rfuentealba
    rfuentealba New Altair Community Member
    Answer ✓

    Please find attached the process. It's pretty simple:

    You need to make sure your numbers are polynominal. Then with the Generate Attributes operator you can create an attribute named Length of ID, which is almost the same thing that Herr @mschmitz suggested (but I prefer to make it easier).

    All the best,

    Rod.

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Answer ✓
    Hi,
    maybe generate attributes with
    length(str([attribute]))
    ?

    Best,
    Martin
  • rfuentealba
    rfuentealba New Altair Community Member
    Answer ✓

    Please find attached the process. It's pretty simple:

    You need to make sure your numbers are polynominal. Then with the Generate Attributes operator you can create an attribute named Length of ID, which is almost the same thing that Herr @mschmitz suggested (but I prefer to make it easier).

    All the best,

    Rod.
  • halaalrobassy
    halaalrobassy New Altair Community Member
    thank you ,i implemented this process ,
    know i want to divid this ID into three divisions, the first two numbers one division , the second four number is another division. can you tell me how 
  • halaalrobassy
    halaalrobassy New Altair Community Member
    thank you, 
    this was helpful and i get want i want