Post Ao47pHTTtPrCehl9Xc by j_bertolotti@mathstodon.xyz
 (DIR) More posts by j_bertolotti@mathstodon.xyz
 (DIR) Post #Ao47pGHkJYsMy1GGbw by eniko@peoplemaking.games
       2024-11-15T10:25:10Z
       
       0 likes, 0 repeats
       
       Wondering what I should do in my VM about divide by zero. On risc-v divide by zero is 0xFFFFFFFF instead of an error which I think is actually kinda nice. I'm already checking all divisions anyway so I could replicate that behavior on other platforms too if I wantedOr I could make divide by zero a runtime error. Which seems like the traditional, safe, and kind of boring choice >_>
       
 (DIR) Post #Ao47pHTTtPrCehl9Xc by j_bertolotti@mathstodon.xyz
       2024-11-15T10:37:44Z
       
       0 likes, 1 repeats
       
       @eniko Probably not very useful to you, but in Mathematica if you divide by zero it returns "ComplexInfinity", which is sort of the right answer 😉