Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
About
Team
Rules
Stats
Status
Sitemap
Chat
Downloads
Forum
News
Our Projects
Major Community Projects
Recent Posts
Unread Posts
Replies
Tools
SourceCoder3
Other Things...
Omnimaga Radio
TI-83 Plus ASM File Unsquisher
Z80 Conversion Tools
IES TI File Editor
Free RAM areas
Comprehensive Getkeyr table
URL Shortener
Online Axe Tilemap Editor
Help
Contact Us
Change Request
Report Issue/Bug
Team
Articles
Members
View the memberlist
Search For Members
Buddies
Login
Register
Omnimaga
»
Forum
»
Calculator Community
»
Other Calc-Related Projects and Ideas
»
TI Z80
»
[AXE] electricity simulator
« previous
next »
Print
Pages:
1
2
3
[
4
]
Go Down
Author
Topic: [AXE] electricity simulator (Read 10144 times)
0 Members and 1 Guest are viewing this topic.
willrandship
Omnimagus of the Multi-Base.
LV11
Super Veteran (Next: 3000)
Posts: 2953
Rating: +98/-13
Insert sugar to begin programming subroutine.
Re: [AXE] electricity simulator
«
Reply #45 on:
December 01, 2012, 08:55:46 am »
The easiest way that occurs to me is this:
Store the number divided by 1000 in another var, here I'll call it A.
Display A
Display a .
Display number-(A*1000)
Logged
aeTIos
Nonbinary computing specialist
LV12
Extreme Poster (Next: 5000)
Posts: 3915
Rating: +184/-32
Re: [AXE] electricity simulator
«
Reply #46 on:
December 01, 2012, 08:58:24 am »
say you have the number 125,3 stored as 1253 then you would first divide by 10, store it to a var (let's say, A) then subtract A*10 from 1253 to get the decimal part.
edit: ninja'd
«
Last Edit: December 01, 2012, 09:01:55 am by aeTIos
»
Logged
I'm not a nerd but I pretend:
Xeda112358
they/them
Moderator
LV12
Extreme Poster (Next: 5000)
Posts: 4704
Rating: +719/-6
Calc-u-lator, do doo doo do do do.
Re: [AXE] electricity simulator
«
Reply #47 on:
December 01, 2012, 08:59:51 am »
Something like this:
Code:
[Select]
Text(0,0,A/100>Dec
Text(".")
Text(A^100>Dec
EDIT:
Accidentally hit post before
«
Last Edit: December 01, 2012, 09:05:07 am by Xeda112358
»
Logged
My pastebin
|
Pokémon Amber
|
Grammer Programming Language
|
BatLib Library
|
Jade Simulator
|
Zeda's Hex Opcodes
|
FileSyst Library
|
CopyProg
|
TPROG
|
GroupRead
|
Lbl Read/Write
|
Z80 Floating Point Routines
(
z80float on GitHub
)|
Z80 Optimized Routines Repository
stevon8ter
LV7
Elite (Next: 700)
Posts: 663
Rating: +10/-0
Re: [AXE] electricity simulator
«
Reply #48 on:
December 01, 2012, 09:01:57 am »
Erhm you're last sentence i read as: substract 1253 from 1253
EDIT: read it as 1253 -1250 :p thx guys
But now there: __125.___3
Where _ = space
«
Last Edit: December 01, 2012, 09:18:46 am by stevon8ter
»
Logged
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it
Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER
Print
Pages:
1
2
3
[
4
]
Go Up
« previous
next »
Omnimaga
»
Forum
»
Calculator Community
»
Other Calc-Related Projects and Ideas
»
TI Z80
»
[AXE] electricity simulator