User Tag List

Results 1 to 2 of 2

Thread: Number Formating

  1. #1
    Clicker Fusion 2.5

    Join Date
    Jul 2006
    Location
    SP - Brazil
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Number Formating

    When I make a calculation (for example 100000 * 31.7) and set a string to show the result I get "3.17e+006" when I wanted to show 3170000. How can I change how a number is formated?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Number Formating

    If you have the developer version you can use double-precision ocjectt: NDigits$( "Double-Precision Calculator", Str$(100000*31.7))

    Another way is to use the set value feature of the INI object then the get string feature.

    I haven't given Sphax Formatted Object a go yet, but that might be a good one to try.
    .:::.Joshtek.:::.

Similar Threads

  1. Getting a random number between a negative and positive number
    By D_Light in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th January 2013, 10:51 PM
  2. Odd / Even number ?
    By basit in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 6th April 2009, 08:20 PM
  3. Help with the number
    By fish20 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd August 2008, 05:04 PM
  4. Frame number
    By Herbert in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th April 2007, 01:38 AM

Posting Permissions

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