POV-Ray : Newsgroups : povray.text.scene-files : Roman numerals : Re: Roman numerals Server Time
23 Dec 2025 18:35:49 EST (-0500)
  Re: Roman numerals  
From: kurtz le pirate
Date: 21 Dec 2025 05:47:15
Message: <6947d033$1@news.povray.org>
On 20/12/2025 23:53, jr wrote:
> hi,
> 
> kurtz le pirate <kur### [at] freefr> wrote:
>> ...
>> what do you think of this version?
>> ...
> 
> several things.  </grin>  first, it was fun to compare (thanks) and find the old
> "swings and roundabouts" adage confirmed.
> 
> it is pretty neat, the all-in-one macro.  pretty compact too.  (too small to
> merit an include file </facetious-grin>)  not having a "mathematical brain" I
> found your code "amazing" but not as "obvious" as the method/algorithm provided
> by Wikipedia.  also, it comes at a cost.  when running each macro ~20k times (5
> loops over 1-3999 range) the nested loops are a little more "expensive".


20K is a lot, and double loops can be detrimental. You're right.


In fact, a long time ago, I was developing applications with FileMaker 
and I had the same need. I just found my function and converted it to 
POV SDL. Juste for fun ;)




-- 
kurtz le pirate
compagnie de la banquise


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.