Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 10:35:01 AM

Pages: [1]   Go Down
  Print  
Author Topic: decimals  (Read 769 times)
Admin
Über Jedi
*****
Offline Offline

Posts: 2544


WWW
« on: March 04, 2002, 02:07:00 AM »

I want to show some mathematical equations on a web site.  How can I do that to make it look neat and line up the decimal places?

For example, I want it to look like this:

  123.12345
+ 123.12345
-------------
  123.12345

with everything lined up correctly and a nice, neat line, all that.  Ideas??
Logged

Brian
Jedi
*****
Offline Offline

Posts: 874


WWW
« Reply #1 on: March 04, 2002, 04:45:00 PM »

i would think to use tables. just use different cells for each part of the number, that way all the decimals will be lined up.

-Brian
Logged

Brian
Jedi
*****
Offline Offline

Posts: 874


WWW
« Reply #2 on: March 04, 2002, 05:29:00 AM »

i made this for you    

http://www.lunarpages.com/untilted/misc/tablemath.htm

i'm sure you already understand all this crap but i figured a visual aid wouldn't hurt    

-Brian  

[ March 04, 2002: Message edited by: Brian ]

Logged

Admin
Über Jedi
*****
Offline Offline

Posts: 2544


WWW
« Reply #3 on: March 04, 2002, 08:51:00 AM »

you're awesome, thanks!!!  
Logged

stephan
Guest
« Reply #4 on: March 04, 2002, 04:53:00 PM »

Try using a font where all the letters are evenly spaced.

I think this is called a "proportional" font.

Like the one used in msdos for example.


Then all your numbers will line up.
Logged
Admin
Über Jedi
*****
Offline Offline

Posts: 2544


WWW
« Reply #5 on: March 09, 2002, 12:57:00 AM »

ok I have the numbers and decimals all lined up.  How do you make the little line at the bottom (equals)?
Logged

Brian
Jedi
*****
Offline Offline

Posts: 874


WWW
« Reply #6 on: March 09, 2002, 01:40:00 AM »

if you look at what i made, there are actually two tables. i made the first table for the numbers you are adding or subtracting or whatever,  then i put the line by using the hypen a whole lot, if you want you could also make a image and put it there, then under the hypens i put a new table with the same dimensions and put in the final numbers. i'm not at my home computer right now, but when i get there i'm going to do some more research and get back to you.

-Brian  
Logged

stephan
Guest
« Reply #7 on: March 10, 2002, 07:39:00 PM »

Just use an underscore e.g. _________
Logged
Admin
Über Jedi
*****
Offline Offline

Posts: 2544


WWW
« Reply #8 on: March 10, 2002, 09:27:00 PM »

Thanks, I decided just to make the entire thing an image.  Using an underscore or a dash doesn't look very good, makes the spacing get all funky so the numbers all line up but then there's a big space before the underscore.  The dash is just that and is not a solid line.

Thanks for all your help!
Logged

kahlan
Intergalactic Superstar
*****
Offline Offline

Posts: 138


WWW
« Reply #9 on: March 17, 2002, 12:21:00 PM »

You could have created a cell thats only 1 pixel high and the whole width of you calculation with a bgcolor of whatever you wanted your line to be.
Logged

Bright Blessings from
Dragon Girl's Realm
Brian
Jedi
*****
Offline Offline

Posts: 874


WWW
« Reply #10 on: March 17, 2002, 12:33:00 PM »

why didn't i think of that....

i feel stupid all of the sudden.


 

-Brian
Logged

kahlan
Intergalactic Superstar
*****
Offline Offline

Posts: 138


WWW
« Reply #11 on: March 17, 2002, 01:06:00 PM »

lol... don't feel stupid, you'll remember this for next time. I use the 1 pixel high (or wide) table a lot for separating things with lines, thats why I thought of it  
Logged

Bright Blessings from
Dragon Girl's Realm
Admin
Über Jedi
*****
Offline Offline

Posts: 2544


WWW
« Reply #12 on: March 17, 2002, 10:07:00 PM »

What a great idea

THANKS!
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: