• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum
    • Categories
    • Recent
    • Popular
    • Tags
    • Register
    • Login

    Modulo for Float

    Feature Requests
    5
    13
    8.1k
    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.
    • N
      nick
      last edited by

      it does if you send the value through a float to integer first 😉

      MacBook Pro 11.5.2

      1 Reply Last reply Reply Quote 0
      • N
        nick
        last edited by

        does this do what you want - is it possible to add attatchments?

        MacBook Pro 11.5.2

        1 Reply Last reply Reply Quote 0
        • N
          nick
          last edited by

          emailed you file as i cant see how to attach file

          MacBook Pro 11.5.2

          1 Reply Last reply Reply Quote 0
          • G
            gavspav Beta Silver
            last edited by

            I don't think that works but I could be misreading the patch.

            Here are my solutions:
            http://dl.dropbox.com/u/3202702/float%20mod.izz

            http://www.digitalfunfair.co.uk I'm using M1 MBP 14" mostly but sometimes use older Mac & Windows machines.

            1 Reply Last reply Reply Quote 0
            • MichelM
              Michel Izzy Guru
              last edited by

              Hello Nick

              I can see that the "Attach a file" function is dissabled for Members. Don't know why Mark didn't activate it yet. Hopefully he does it soon.

              Best,
              Michel

              Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

              1 Reply Last reply Reply Quote 0
              • markM
                mark
                last edited by

                I believe I've enabled attachments for members. Please give it a try and let me know.

                But on to the topic of modulo arithmetic, from the wiki on the subject:
                "In mathematics, modular arithmetic (sometimes called clock arithmetic) is a system of arithmetic for **_integers_**"
                In other words, the notion of modulo is not defined for floating point (real) numbers.
                However, one solution is to multiply your floating point number by some value, e.g., 1000\. The do the modulo, and divide the result by 1000\. Does that give you what you want?
                Best Wishes,
                Mark

                Media Artist & Creator of Isadora
                Macintosh SE-30, 32 Mb RAM, MacOS 7.6, Dual Floppy Drives

                1 Reply Last reply Reply Quote 0
                • N
                  nick
                  last edited by

                  I can see it now - but it fails as uploading - file type is not allowed - for a file of type .izz

                  MacBook Pro 11.5.2

                  1 Reply Last reply Reply Quote 0
                  • SkulptureS
                    Skulpture Izzy Guru
                    last edited by

                    I think you will have to zip izz files

                    Graham Thorne | www.grahamthorne.co.uk
                    RIG 1: Windows 11, AMD 7 Ryzen, RTX3070, 16gig RAM. 2 x M.2 SSD. HD. Lenovo Legion 5 gaming laptop.
                    RIG 2: Windows 11, Intel i19 12th Gen. RTX3070ti, 16gig RAM (ddr5), 1x M.2 SSD. UHD DELL G15 Gaming laptop.
                    RIG 3: Apple rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

                    1 Reply Last reply Reply Quote 0
                    • MichelM
                      Michel Izzy Guru
                      last edited by

                      Hello Nick

                      you have to .zip your file that have extensions other than the common .jpg .tiff .pdf etc.

                      @Mark: To allow more extensions to be uploaded especially .izz, you will find in the folder where you have installed the forum the file conf-->config.php. In config.php add the following line (all should be in one line) and add or delete the extensions you want to allow
                      $Configuration['Garden']['Upload']['AllowedFileExtensions'] = array('txt','jpg','jpeg','gif','png','bmp','tiff','ico','zip','gz','tar.gz','tgz','psd','pdf','doc','xls','ppt','docx','xlsx','log','rar','7z','izz');

                      place the line above after this one
                      $Configuration['Garden']['Update']['Count'] = 1;

                      Best,
                      Michel

                      Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

                      1 Reply Last reply Reply Quote 0
                      • G
                        gavspav Beta Silver
                        last edited by

                        Mark, integers, ah ok and multiplying by a large number, yes that's what I did (see patch).

                        In the spirit of this thread I am attaching the file again, for no reason other than to test the attachment feature!
                        Isadora forum won't let you upload .izz files! Love it!

                        665bd0-float-mod.izz.zip

                        http://www.digitalfunfair.co.uk I'm using M1 MBP 14" mostly but sometimes use older Mac & Windows machines.

                        1 Reply Last reply Reply Quote 0
                        • markM
                          mark
                          last edited by

                          Dear Gavin,

                          Thanks for the patch... I'll follow Michel's instructions to add the other file types.
                          Best WIshes,
                          Mark

                          Media Artist & Creator of Isadora
                          Macintosh SE-30, 32 Mb RAM, MacOS 7.6, Dual Floppy Drives

                          1 Reply Last reply Reply Quote 0
                          • markM
                            mark
                            last edited by

                            This is a test to see if I can upload an isadora file... 92a4a3-isadora-test-upload.izz

                            Media Artist & Creator of Isadora
                            Macintosh SE-30, 32 Mb RAM, MacOS 7.6, Dual Floppy Drives

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