Author Topic: [AXE] electricity simulator  (Read 9956 times)

0 Members and 1 Guest are viewing this topic.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
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)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
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 D:
« Last Edit: December 01, 2012, 09:01:55 am by aeTIos »
I'm not a nerd but I pretend:

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
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 XD

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
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 »
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