Forum

    • Register
    • Login
    • Search
    • Categories

    snex functionality frexp()?

    Scripting Forum
    2
    3
    127
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • giftlift
      giftlift last edited by

      Anyone know of a way to add/clone the frexpf function for snex?
      (Which is a single-precision version of frexp)
      I tried to translate this script http://locutus.io/c/math/frexp/
      But it seems there is no Math.log2 or Math.LOG2E.
      Is there a way to add this function (frexp) to snex?

      ustk 1 Reply Last reply Reply Quote 0
      • ustk
        ustk @giftlift last edited by

        @giftlift no but there's a simple Math.log
        so you can deduce the log2 this way:

        log2(y) = log(y) / log(2)

        I can't help pressing F5 in the forum...

        giftlift 1 Reply Last reply Reply Quote 1
        • giftlift
          giftlift @ustk last edited by

          @ustk thanks! I'll try that

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          5
          Online

          1.1k
          Users

          7.0k
          Topics

          64.6k
          Posts