Bug Issue: smaller of 4 and 6


Pages: 1

danielle53

  • Subscriber - Stencyl Indie
  • *
February 12, 2016, 03:09:14 pm
smaller of 4 and 6  should be integer , I agree with my script

Float should be Int

It works well with either n = 4 or n = 6 ..

same problem with a (computed) length of list.

The workaround is simple : I have to use round() !

I think the problem that Yoplala has encountered today is somehow related : it looks like an "automatic" conversion of types was not  possible  in a affectation line
but even if my guess is completly wrong ..

 why  should a length of a list be a Float, at the first place ?


yoplalala

  • Level 5 Stencyler
February 13, 2016, 06:36:44 am
Round transforms to an int. Otherwise you can Std.int()


captaincomic

  • Master Stencyler
  • *
March 09, 2016, 09:19:29 am
In which situation did you get the "Float should be Int" error? Please add a screenshot of the blocks. The rounding can probably done in the block definition.

Quote
why  should a length of a list be a Float, at the first place ?
For simplicity, Stencyl has only one Number attribute type, which is Float. There is no integer type.
  • Status changed from New to Need Info


Issue updated by captaincomic - May 03, 2016, 04:26:16 pm
  • Tags added: abandoned
  • Status changed from Need Info to Closed


Pages: 1

Details

  • Reported
    February 12, 2016, 03:09:14 pm
  • Updated
    May 03, 2016, 04:26:16 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags