display text showing ".5" as "0.50"

pjnolenpjnolen Member Posts: 152
edited November -1 in Working with GS (Mac)
I want to display text of ".5", but if I use that 'display text' behavior it always shows it as "0.50"

Is that supposed to occur?

Comments

  • HachikoHachiko Member Posts: 330
    you just write .5 in the text field or ".5" ? because with the "" it should be treated as string, therefore it should work.
  • pjnolenpjnolen Member Posts: 152
    If I type in this= .5

    I get this= 0.50

    If I type in this= ".5"

    I get this=".5"

    I want this= .5

    I want no quotes, no 0's, no nothing. I'm not sure why it makes it some sort of float.

    I just want what I type.
  • cbtcbt Member Posts: 644
    This really is more interesting than I thought...

    -Make 2 self.attributes as "text" and name them text1,text2

    -Make text1 "." (Without ")

    -Make text2 5

    -On the actor: Display text, self.text1..self.text2

    There is no way it will write 0.50 because we are using 2 text attributes, not integers, not reals..
    But BOOM!
    It again writes 0.50.
    Most interesting thing I've ever seen in GS :D
  • cbtcbt Member Posts: 644
    Any additional info on this one?
  • simo103simo103 Member, PRO Posts: 1,331
    ugly solution but I did one actor with 5 as a display text in it and one actor with the . and then placed then in the correct order and got .5

    don't know if that helps you?
  • pjnolenpjnolen Member Posts: 152
    I decided to have an actor display an image, with .5 as the picture.

    lol

    works fine
  • AsymptoteellAsymptoteell Member Posts: 1,362
    couldn't you just put a space after .5?
    Like this: ".5 " but without the quotation marks?
  • JackBQuickJackBQuick Member Posts: 524
    Asymptoteell said:
    couldn't you just put a space after .5?
    Like this: ".5 " but without the quotation marks?

    Yes. But instead of an ordinary space (which doesn't work), use option+space. The option key should be two keys to the left of the space bar.
Sign In or Register to comment.