POV-Ray : Newsgroups : povray.text.scene-files : Roman numerals : Roman numerals Server Time
21 Dec 2025 02:44:34 EST (-0500)
  Roman numerals  
From: jr
Date: 19 Dec 2025 18:20:00
Message: <web.6945dcb042cb8f7352af7e976cde94f1@news.povray.org>
hi,

I wrote/"needed" a macro ('LatinYear()') to convert years to their Roman
numerals representation, posting it .. just in case.  the macro takes the year
and returns a string, for instance:

#version 3.8;
global_settings {assumed_gamma 1}

#include "latinum.inc"

#debug concat("2000  ",LatinYear(2000),".\n")
#debug concat("1984  ",LatinYear(1984),".\n")
#debug concat("2026  ",LatinYear(2026),".\n")


enjoy, jr.


Post a reply to this message


Attachments:
Download 'latinum.inc.txt' (3 KB)

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