032 Archicad GDL TUBE Command Extras

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

Комментарии • 4

  • @mattclarke3761
    @mattclarke3761 9 дней назад +2

    Splendid

  • @sweepthelegs1707
    @sweepthelegs1707 4 дня назад

    very good! Bruce, I have a question, how do I round a decimal number up or down to 2 places and this new rounded number be used to calculate an area, multiplying by another number (example: 2.355 to 2.36) So I take 2.36 and multiply it by another number. I ask this because the only way I found was to create a loop to check the third decimal place, but the code was too long.

    • @BarkingDogBIM
      @BarkingDogBIM  4 дня назад +1

      You use the ROUND_INT (or INT...depending on what you want) function combined with a multiplier to get the decimal rounding desired. E.g.
      oldNumber = 2.355
      newNumber = round_int(oldNumber*100)/100

    • @sweepthelegs1707
      @sweepthelegs1707 2 дня назад +1

      @@BarkingDogBIM Bruce, thank you very much!
      I understood the logic after I did this calculation on the calculator.
      I hadn't thought about that.
      You are the best teacher I have ever had.
      Thanks again!