Login Page - Create Account

Support Board


Date/Time: Thu, 13 Feb 2025 02:50:51 +0000



Post From: modf() broken in 2192?

[2020-11-16 03:40:02]
Ed C. - Posts: 117
Something broke modf() in later releases of SC - I upgraded to 2192 this weekend to keep my Denali data feed, and it broke code:

double backdate, backtime;
  backdate = sc.BaseDateTimeIn[sc.Index - BarsBack].GetDate();
  backtime = std::modf(sc.BaseDateTimeIn[sc.Index - BarsBack], &date);

The compiler is throwing an error:

error C2665: 'modf': none of the 3 overloads could convert all the argument types

Any ideas? Since SC support isn't blowing up with complaints, I'm assuming it's on my end, but I'm not sure where to check.
Date Time Of Last Edit: 2020-11-16 03:40:23