A working machine comprising an engine, a power system and at least one hydraulic actuator, wherein the power system comprises: a transmission for driving the working machine, the transmission comprising a continuously variable gear box having a gear unit and a hydraulic variator unit; a work hydraulic circuit arranged for controlling the at least one hydraulic actuator of the working machine; wherein the hydraulic variator unit is hydraulically connected to the work hydraulic circuit to hydraulically transfer energy from the hydraulic variator unit to the work hydraulic circuit, characterized in that the transmission further comprises an input shaft mechanically connecting the engine of the working machine to the variable gear box, and an output shaft mechanically connecting the variable gear box to wheels, wherein the hydraulic variator unit comprises a primary hydraulic machine and a secondary hydraulic machine, wherein the work hydraulic circuit comprises a digital hydraulic actuator, wherein at least one of the primary hydraulic machine and the secondary hydraulic machine is hydraulically connected to the work hydraulic circuit; and wherein at least one of said primary and secondary hydraulic machine comprises: a first rotating hydraulic machine and a second rotating hydraulic machine, said first rotating hydraulic machine and second rotating hydraulic machine being arranged to provide a torque via a common output shaft; a first valve means (908, 1120) for providing a differential hydraulic pressure level over the first rotating hydraulic machine by using two sources of hydraulic fluid having different hydraulic pressure levels; a second valve means (914, 1126) for providing a differential hydraulic pressure level over the second rotating hydraulic machine by using two sources of hydraulic fluid having different hydraulic pressure levels; a control unit configured to control said first valve means and said second valve means such that different discrete levels of torque are provided via the output shaft. a transmission for driving the working machine, the transmission comprising a continuously variable gear box having a gear unit and a hydraulic variator unit; a work hydraulic circuit arranged for controlling the at least one hydraulic actuator of the working machine; wherein the hydraulic variator unit is hydraulically connected to the work hydraulic circuit to hydraulically transfer energy from the hydraulic variator unit to the work hydraulic circuit, characterized in that the transmission further comprises an input shaft mechanically connecting the engine of the working machine to the variable gear box, and an output shaft mechanically connecting the variable gear box to wheels, wherein the hydraulic variator unit comprises a primary hydraulic machine and a secondary hydraulic machine, wherein the work hydraulic circuit comprises a digital hydraulic actuator, wherein at least one of the primary hydraulic machine and the secondary hydraulic machine is hydraulically connected to the work hydraulic circuit; and wherein at least one of said primary and secondary hydraulic machine comprises: a first rotating hydraulic machine and a second rotating hydraulic machine, said first rotating hydraulic machine and second rotating hydraulic machine being arranged to provide a torque via a common output shaft; a first valve means (908, 1120) for providing a differential hydraulic pressure level over the first rotating hydraulic machine by using two sources of hydraulic fluid having different hydraulic pressure levels; a second valve means (914, 1126) for providing a differential hydraulic pressure level over the second rotating hydraulic machine by using two sources of hydraulic fluid having different hydraulic pressure levels; a control unit configured to control said first valve means and said second valve means such that different discrete levels of torque are provided via the output shaft.