to add the point in the score LATER 1.000.000.000
it is possible to get the point after the score has overcome 1.000.000.000 ??????
please, can you write me the string to have this thing?
to insert the point in the score after the score has overcome 1.000 is written in this way:
Left$(Str$(score( "Player 1" )), Len(Str$(score( "Player 1" )))-3)+"."+Right$(Str$(score( "Player 1" )), 3)
to insert the point in the score after the score has overcome 1.000.000 is written in this way:
Left$(Str$(score( "Player 1" )), Len(Str$(score( "Player 1" )))-6)+"."+Mid$(Str$(score( "Player 1" )), Len(Str$(score( "Player 1" )))-6, 3)+"."+Right$(Str$(score( "Player 1" )), 3)
Re: to add the point in the score LATER 1.000.000.000
Mind you the maximum score MMF can handle is 1.410.065.407
Left$(Str$(score( "Player 1" )), Len(Str$(score( "Player 1" )))-9)+"."+Mid$(Str$(score( "Player 1" )), Len(Str$(score( "Player 1" )))-9, 3)+"."+Mid$(Str$(score( "Player 1" )), Len(Str$(score( "Player 1" )))-6, 3)+"."+Right$(Str$(score( "Player 1" )), 3)
Re: to add the point in the score LATER 1.000.000.000
Max should be 2.147.483.647, if it's stored as a signed integer.
Re: to add the point in the score LATER 1.000.000.000
Re: to add the point in the score LATER 1.000.000.000
Most values in MMF are dual 32-bit signed integers and either 32-bit single-precision or 64-bit double-precision floating point. MMF can represent numbers of 10 to the power of hundreds, but not with full accuracy.
Re: to add the point in the score LATER 1.000.000.000
I would recommend to use a loop for converting the number without restrictions, like this way:
Used Global Strings:
- [color:#3366FF]Number[/color] > source number as string
- [color:#33CC00]Number2[/color] > converted number as string
Your condition
-->
Set [color:#3366FF]Number[/color] to Str$( Value )
Set [color:#33CC00]Number2[/color] to Left$([color:#3366FF]Number[/color], Len([color:#3366FF]Number[/color])-((Len([color:#3366FF]Number[/color])-1)/3)*3)
Start loop "convert_number" (Len([color:#3366FF]Number[/color])-1)/3 times
[The converted number now is available from string Number2 ...]
On loop "convert_number"
-->
Set [color:#33CC00]Number2[/color] to [color:#33CC00]Number2[/color]+"."+Mid$([color:#3366FF]Number[/color], Len(Left$([color:#3366FF]Number[/color], Len([color:#3366FF]Number[/color])-((Len([color:#3366FF]Number[/color])-1)/3)*3))+LoopIndex("convert_number")*3, 3)