Integer Frage

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Integer Frage

Re: Integer Frage

Post by aeran » 16 May 2016, 11:00

danke

Re: Integer Frage

Post by just me » 16 May 2016, 07:54

Moin,

die modernste Lösung für solchene Aufgaben ist die Format() Funktion:

Code: Select all

Zahl = 01
Zahl += 01
MsgBox, 0 , Standard, %Zahl%
MsgBox, 0, Mit Format(), % Format("{:02i}", Zahl)

Integer Frage

Post by aeran » 16 May 2016, 06:29

Hallo, ich habe eine ganz einfache Frage:

und zwar habe ich eine Variable namens zahl, die ich mithilfe von zahl += 1 hochzählen will.
Nun zu meiner Frage: Ich würde gerne aus format gründen die Zahlen kleiner 10 sind, mit einer 0 vorne beginnend hochzählen.

zahl = 01

zahl += 1 soll zahl = 02 ausgeben

Ist so etwas möglich?

lg aeran

Top