User Tag List

Results 1 to 3 of 3

Thread: Removing last digit

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Removing last digit

    Hi
    How can i remove the last digit of a number in an expression?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Left$(Str$(value( "Counter" )), Len(Str$(value( "Counter" )))-1)

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Removing last digit

    Or simply use value/10. Or if you end up getting decimal places then try Int(value/10).

    If you use the method from the post above this one, wrap it in Val() to make sure it's still a number and not a string.

Similar Threads

  1. problem with digit result
    By arthurh in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th September 2013, 02:26 PM
  2. Fixed digit counters
    By Apex in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd February 2012, 07:26 AM
  3. Single Digit to Double Digit
    By Mantis in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 9th December 2010, 12:10 AM
  4. digit problem
    By Herbert in forum File Archive
    Replies: 1
    Last Post: 13th February 2010, 10:04 AM
  5. Get a digit from a counter
    By Raylax in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 13th December 2008, 11:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •