Floor division missing?  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
DeVille70
Posts: 32
Joined: Friday 04 December 2015 21:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sandnes, Norway
Contact:

Floor division missing?

Post by DeVille70 »

Does dzVents have a floor division operator, like // in python? I could not find...
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Floor division missing?

Post by waaren »

DeVille70 wrote: Wednesday 06 January 2021 18:52 Does dzVents have a floor division operator, like // in python? I could not find...
dzVents is a framework for Lua coding in domoticz. The underlying language is Lua so everything that is available in Lua is available in dzVents.

floor division in Lua is

Code: Select all

math.floor(a / b)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
DeVille70
Posts: 32
Joined: Friday 04 December 2015 21:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sandnes, Norway
Contact:

Re: Floor division missing?  [Solved]

Post by DeVille70 »

Perfect, thanks.
Post Reply

Who is online

Users browsing this forum: Google [Bot], Wiers and 1 guest