Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    bug in the Vector class ?

    Scheduled Pinned Locked Moved Bugs
    2 Posts 0 Posters 522 Views
    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.
    • H Offline
      Helper
      last edited by

      On 24/09/2015 at 11:59, xxxxxxxx wrote:

      The Vector class has a strange way to round the float:

        
      import c4d   
      def main() :   
          v = c4d.Vector(1094854.6949,1094854.6949,1094854.6949)   
          print v   
          print v.x   
          print v.y   
          print v.z      
      if __name__=='__main__':   
          main()   
      

      give in the console :

      Vector(1094854.695,1094854.75, 1094854.75)
      1094854.6949
      1094854.75
      1094854.75

      For the x attribute it's ok, but not for y and z

      Is that a bug ?

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 25/09/2015 at 02:11, xxxxxxxx wrote:

        Hello,

        I can confirm this behavior, a bug report was filed. There is a special subforum for bugreports; we will move this thread there.

        Best wishes,
        Sebastian

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