text editing

Discussion in 'AutoCAD' started by ffejgreb, Aug 26, 2003.

  1. ffejgreb

    ffejgreb Guest

    Anyone have a routine that will do the following?:

    I have numerous strings of differing text that are numbers with decimal
    places (not dims). The number carries to four places after the decimal
    (1234.5678). I would like to remove the last two digits so that they carry
    to only two places after the decimal (1234.56).

    TIA,

    Jeff
     
    ffejgreb, Aug 26, 2003
    #1
  2. ffejgreb

    BillZ Guest

    (atof (rtos 1234.5678 2 2))



    Bill
     
    BillZ, Aug 26, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.