Corrected issue with floor() #1377
This commit is contained in:
parent
0983d7b45c
commit
405d3fac0c
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ void main()
|
|||
{
|
||||
for (int i = 2; (i < max(2, sqrt(value) + 1)); i++)
|
||||
{
|
||||
if ((value - i*floor(value/i)) == 0)
|
||||
if ((value - i*floor(float(value)/float(i))) == 0)
|
||||
{
|
||||
color = Colorizer(float(i), scale);
|
||||
//break; // Uncomment to color by the largest factor instead
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue