Skip to content

Commit

Permalink
fix conversion from [kWh] to [Wh]
Browse files Browse the repository at this point in the history
  • Loading branch information
smdn committed Jan 9, 2025
1 parent 6fce950 commit 619d0c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public readonly struct ElectricEnergyValue {
/// </summary>
/// <remarks><see cref="IsValid"/>が<see langword="false"/>の場合、<c>0</c>を返します。</remarks>
/// <see cref="IsValid"/>
public decimal WattHours => KiloWattHours / 1_000.0m;
public decimal WattHours => KiloWattHours * 1_000.0m;

/// <summary>
/// ECHONETプロパティ(EPC)から取得される電力量を、そのままの値で取得します。
Expand Down

0 comments on commit 619d0c9

Please sign in to comment.