Posted on 2001-08-11
I am currently programming in a language called Visual Dataflex. It can get the job done, but it lacks many of the creature comforts of C++ and VB.
There is on round decent round function and there is no Array type. there is an Array class, but the syntax for using it and most other VDF stuff is very long and clunky.
Hence my problem. I want to create my own Round function. Back in C++, I made one with a CHAR and it was pretty easy. This function will only need to round things after the decimal place. Everything I've tried so far is very long and I was wondering if anyone can suggest an algorithm for rounding after the decimal point, assuming that I can't use an array.
Essentially, I want the function to take two arguments, the number and the number to the right of the decimal place (Just like in other languages).
I know this is painfully easy, but I'm having a block.