Please Register and Login on our Forum to get access to all our available resources.
Roulette Forum | Money Maker Machine
November 23, 2017, 02:52:57 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
French German Italian Dutch Spanish Portuguese Korean Chinese Simplified Japanese Greek Arabic Russian
News:
 
   Home   Help Tags Login Register  
Del.icio.us Digg FURL FaceBook Stumble Upon Reddit SlashDot

Pages: [1]   Go Down
  Print  
Author Topic: How to calculate decimals?  (Read 11225 times)
0 Members and 1 Guest are viewing this topic.
ombrerico
PLATINUM Member
Trade Count: (+1)
Sr. Member
***

Karma: 994
Offline Offline

:November 02, 2017, 11:06:52 PM
Posts: 1834
Referrals: 3



Activity
0%

Success to all.


« on: July 17, 2015, 03:56:24 PM »

Hello, silver.

The following formula works perfectly with integers.

But if the stake is decimal, it does not.

Could you give me some light on this issue?

Quote
 for k:=1 to 200 do begin
      if((((k*36)-(e111[0,1]+(e111[0,2]*k))))>e111[0,1])then begin e111[1,2]:=k; end;
  end;
« Last Edit: July 17, 2015, 03:57:58 PM by ombrerico » Logged
Silver
Moderator
Trade Count: (+8)
Sr. Member
*****

Karma: 108
Offline Offline

:February 22, 2017, 06:10:29 AM
Posts: 722
Referrals: 1



Activity
0%

RSS Expert


« Reply #1 on: July 19, 2015, 11:12:28 AM »

Decimals work strange in RSS. Especially in > < greater/lower.
I have invented a trick to avoid this situation.

There is need to convert both values into string, then back to float - in this case operators < > will work perfect.
See spleeping.psc - line 149 (or 215) , and s_utils.psc - ine 803

http://www.money-maker-machine.com/forum/downloads/?sa=view;down=48
Logged

RSS is limited only by your imagination ...

Have any error with your script or any question with it - go to SILVER's Room board for free help.
Need a fully functional and well organized RSS Script - visit http://silver.money-maker-machine.com
ombrerico
PLATINUM Member
Trade Count: (+1)
Sr. Member
***

Karma: 994
Offline Offline

:November 02, 2017, 11:06:52 PM
Posts: 1834
Referrals: 3



Activity
0%

Success to all.


« Reply #2 on: July 19, 2015, 05:21:42 PM »

ok silver,
I will try to see what I can.

grateful for the teaching.
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Cannot fill array with a number with decimal places like 0.1 to calculate with
SILVER's Coding Room
MrCoolLion 3 1332 Last post December 24, 2011, 02:24:44 PM
by MrCoolLion
Powered by MySQL Powered by PHP Money Maker Machine © 2007-2016
Powered by SMF | SMF © 2006, Simple Machines
SMFAds for Free Forums | Sitemap | Sitemap
Valid XHTML 1.0! Valid CSS!


November 07, 2017, 12:12:33 PM